SYNOPSIS
#include <unistd.h>
int close(int fildes);
DESCRIPTION
The
If
When all file descriptors associated with a pipe or FIFO special file are closed, any data remaining in the pipe of FIFO is discarded.
When all file descriptors associated with an open file description have been closed, the open file description freed.
If the link count of a file is 0, when all file descriptors associated with the file are closed, the space occupied by the file is freed and the file is no longer accessible.
PARAMETERS
RETURN VALUES
If successful,
CONFORMANCE
POSIX.1 (1996), with exceptions.
MULTITHREAD SAFETY LEVEL
Async-signal-safe.
PORTING ISSUES
If the file was opened with an attribute of O_TEMPORARY, the file is deleted if the count is zero.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.