Menu

Class 9: Homework


You must print this sheet out and write/type answers on it!

  1. Fill in the kernel file I/O structures in the diagram below as they would appear after prog1 is launched via the command
    	  bash$ ./prog1 < foo.txt > bar.txt 2> bar.txt
    	
    You may assume that the process created by this command has PID 1001.

  2. Read section 4.14 in APUE and answer the following questions: