Modern Operating Systems, 2nd Edition, Chapter 10 Course Slides
Modern Operating Systems, 2nd Edition, Chapter 10 Course Slides
1
UNIX
User
Interface
2
UNIX Utility Programs
5
POSIX
6
System Calls for Process Management
s is an error code
pid is a process ID
residual is the remaining time from the previous alarm 7
POSIX Shell
9
The ls Command
11
UNIX Scheduler
cp
• s is an error code
• b and addr are memory addresses
• len is a length
• prot controls protection
• flags are miscellaneous bits
• fd is a file descriptor
• offset is a file offset
16
Paging in UNIX
Buddy algorithm
19
Networking
21
UNIX I/O (1)
22
UNIX I/O (2)
25
The UNIX File System (2)
• Before linking.
• After linking.
(a) (b)
• s is an error code
• fd is a file descriptor
• position is a file offset
29
The lstat System Call
• s is an error code
• dir identifies a directory stream
• dirent is a directory entry
31
UNIX File System (1)
32
UNIX File System (2)
36
Network File System (1)
• s is an error code
• uid and gid are the UID and GID, respectively
40