Outline for March 30, 2022
text
, §5, 39
Homework and Extra Credit 1, due Apr 11
How system calls work
Interaction with the operating system
Example of library wrapper
Error indicator:
errno
File-oriented Linux system calls
Linux file system
Files and directories
Links and symbolic links
File descriptors, kernel file pointers
Accessing files:
open()
,
read()
,
write()
,
close()
Getting file status:
stat()
,
lstat()
Move around in a file:
lseek()
Linking and deleting files:
{link()
,
symlink()
,
unlink()
Process-oriented Linux system calls
Process identification, process table
Starting a child process:
fork()
,
execve()
,
wait()
,
waitpid()
Process termination:
_exit()
,
EXIT_SUCCESS
,
{EXIT_FAILURE
Get process UID, GID:
getuid()
,
getgid()
Set process UID, GID:
setuid()
,
setgid()
,
setreuid()
,
setregid()
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email:
mabishop@ucdavis.edu
ECS 150, Operating Systems
Version of March 30, 2022 at 7:47PM
You can also obtain a PDF version of this.