a file descriptor such as returned from an
closes the associated file.
A close of all files is automatic on
there is a limit on the number of open files per process,
is necessary for programs which deal with many files.
Files are closed upon termination of a process, and
certain high-numbered file descriptors are closed by
and it is possible to arrange for others to be closed
creat(2), open(2), pipe(2), exec(2), ioctl(2)
Zero is returned if a file is closed;
\-1 is returned for an unknown file descriptor.
A file cannot be closed while there are pages which have been