#include <unistd.h> int close( int fildes );
The close()
function deallocates the file descriptor named by
fildes
and makes it available for reuse. All outstanding
record locks owned by this process for the file are unlocked.
A signal can interrupt the close()
function. In that case,
close()
returns -1 with errno
set to EINTR. The file
may or may not be closed.
Copyright © 1988-2007OAR Corporation