ADV *NIX SYSTEM CALLS Flashcards
Provide the system calls used for process control as defined below:
fork execve kill exit wait
Creates a child process in the image of the parent process.
fork
Executes the program pointed to by the file name.
execve
Sends a sig another process to terminate it.
kill
Terminates current process and performs a cleanup afterwards.
exit
Blocks calling process until its child process exits or signal is received.
wait
Provide the system calls used for file and device management as defined below:
open ioctl creat read write close
Open an existing file or device.
open
Input or output control of device-specific operations.
ioctl
Create and open a file.
creat
Read data from a file or device.
read
Write data to a file or device.
write
Close all files associated with a terminating process.
close
Provide the system calls used for information management as defined below:
getpid
uname
Returns the PID of the calling process.
getpid
Returns system information pertaining to the platform.
uname
Provide the system calls used for communication as defined below:
mmap
pipe
Creates a map in the virtual address space of the calling process.
mmap
Creates a uni-directional data channel that can be used for Inter-Process Communication (IPC).
pipe
Provide the system calls used for protection as defined below:
umask
chmod
Sets the calling process’ file mode creation mask (umask).
umask
Changes the file’s mode bits (permissions).
chmod