-APUE-:
fig3.10, print file flags for specified fd.
fig3.11, turn on one or more file flags for fd.
-APUE-:
ex3.2, own version of dup2 function without fcntl.
ex3.6, test open file with O_APPEND to see whether lseek
can change offset in fd when writing to the file.