CLOSE(2)

NAME
close - close an open file descriptor

SYNOPSIS
#include <unistd.h>
int close (int filedes);

DESCRIPTION
close() closes an open file descriptor. 0 is returned on success, a negative value on error.

ERRORS
-EINVAL is returned if close() is used on an invalid file descriptor.

SEE ALSO
fopen(3), open(2)

FILES
linux/fs/open.c, /usr/include/linux/sys.h, /usr/include/unistd.h