C Programming Quiz
- File I/O
- Code reading from files and writing to files
- Know how to use the commands : open, read, write, lseek and close -
what is their function and what their parameters mean
- Understand redirection and standard files : 0, 1, 2, stdin, stdout,
stderr.
- Understand what a file descriptor is, how it relates to an inode table,
and the file open table, and how to use the file descriptor
- Know what link and unlink do and be able to trace whether you are copying
or deleting or moving a file
- Know how to access command line parameters
- Debugging - gdb - commands : (option -g) ; r(un), b(reak), n(ext - step
over), s(tep into), p(rint), c(ontinue), l(ist), fin(ish),q(uit)
- Not included but will be on the final: Make files - what they are; how
to read one
- Not included : Know how to lock a portion of a file
- Processes and signals
- Fork and Exec; create in c code and understand how the shell uses this
as you execute commands such as grep and ls
- Wait and send exit codes; - see with echo $? and use in c code
- Parent, process and child ids; see with ps -f and use in c code.
- Sending signals: see with kill -9 pid and use in c code
- Not included : trapping signals