ADV *NIX SYSTEM CALLS Flashcards

1
Q

Provide the system calls used for process control as defined below:

A
fork
execve
kill
exit
wait
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Creates a child process in the image of the parent process.

A

fork

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Executes the program pointed to by the file name.

A

execve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sends a sig another process to terminate it.

A

kill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Terminates current process and performs a cleanup afterwards.

A

exit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Blocks calling process until its child process exits or signal is received.

A

wait

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Provide the system calls used for file and device management as defined below:

A
open
ioctl
creat
read
write
close
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Open an existing file or device.

A

open

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Input or output control of device-specific operations.

A

ioctl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Create and open a file.

A

creat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Read data from a file or device.

A

read

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Write data to a file or device.

A

write

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Close all files associated with a terminating process.

A

close

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Provide the system calls used for information management as defined below:

A

getpid

uname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Returns the PID of the calling process.

A

getpid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Returns system information pertaining to the platform.

A

uname

17
Q

Provide the system calls used for communication as defined below:

A

mmap

pipe

18
Q

Creates a map in the virtual address space of the calling process.

A

mmap

19
Q

Creates a uni-directional data channel that can be used for Inter-Process Communication (IPC).

A

pipe

20
Q

Provide the system calls used for protection as defined below:

A

umask

chmod

21
Q

Sets the calling process’ file mode creation mask (umask).

A

umask

22
Q

Changes the file’s mode bits (permissions).

A

chmod