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