
Explore tens of thousands of sets crafted by our community.
Common System Calls
25
Flashcards
0/25
pipe
Creates a unidirectional communication channel between two processes.
sleep
Suspends the execution of the calling thread for a specified number of seconds.
unlink
Removes a link to a file and possibly the file itself from a file system.
mount
Attaches a file system to a specified directory, making it accessible to the process.
getpid
Returns the process ID of the calling process.
read
Attempts to read bytes from a file descriptor into a buffer.
write
Writes data to a file descriptor from a buffer.
umount
Detaches a file system from the directory tree, making it inaccessible to the process.
exit
Terminates the calling process and returns an exit status to the operating system.
wait
Blocks the calling process until one of its child processes exits or receives a signal.
getuid
Returns the user ID of the calling process.
kill
Sends a signal to a specific process or process group.
geteuid
Returns the effective user ID of the calling process.
chdir
Changes the current working directory of the calling process to the specified path.
getdents
Reads several directory entries from a directory file descriptor.
dup
Duplicates a file descriptor.
setuid
Sets the effective user ID of the calling process.
ioctl
Provides a device-specific command interface to hardware devices.
fork
Creates a new process by duplicating the calling process.
select
Allows a program to monitor multiple file descriptors, waiting for one or more of the file descriptors to become 'ready'.
fork
Creates a new process, which is a copy of the parent process.
open
Opens a file or device, returning a file descriptor that can be used to access the file.
exec
Replaces the current process image with a new program image.
close
Closes a file descriptor, so it no longer refers to any file and may be reused.
chmod
Changes the file permissions of a specified file or directory.
© Hypatia.Tech. 2024 All rights reserved.