More general approach to file descriptor types and flags.

14 files changed