These functions operate on I/O streams referred to with file descriptors:
Closes file descriptor
Macintosh, Unix, Windows.
This function is intended for low-level I/O and must be applied to a
file descriptor as returned by
pipe(). To close a file object returned by the
fdopen(), use its
Returns a duplicate of file descriptor
Availability: Macintosh, Unix, Windows.
Duplicates file descriptor
fd2, closing the latter first if
necessary. Availability: Unix, Windows.
Returns status for file descriptor
stat(). Availability: Unix, Windows.
Returns information about the filesystem containing the file
associated with file descriptor
fd , like
statvfs(). Availability: Unix.
Truncates the file corresponding to file descriptor
, so that it is
in size. Availability: Unix.
Sets the current position of file descriptor
fd to position
pos, modified by
to set the position relative to the beginning of the file; 1 to set
it relative to the current position; and 2 to set it relative to the
end of the file. Availability: Macintosh, Unix, Windows.
Opens the file
file and sets various flags
flags and, possibly, its mode
mode. The default mode is
0777 (octal), and the current
umask value ...