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