Query: close
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
close(2) System Calls Manual close(2)NAMEclose - close a file descriptorSYNOPSISDESCRIPTIONcloses the file descriptor indicated by fildes. fildes is a file descriptor obtained from a or system call. All associated file segments which have been locked by this process with the function are released (i.e., unlocked).RETURN VALUEUpon successful completion, returns a value of 0; otherwise, it returns -1 and sets to indicate the error.ERRORSfails if the any of following conditions are encountered: [EBADF] fildes is not a valid open file descriptor. [EINTR] An attempt to close a slow device or connection or file with pending aio requests was interrupted by a signal. The file descriptor still points to an open device or connection or file. [ENOSPC] Not enough space on the file system. This error can occur when closing a file on an NFS file system. [When a system call is executed on a local file system and if a new buffer needs to be allocated to hold the data, the buffer is mapped onto the disk at that time. A full disk is detected at this time and returns an error. When the system call is executed on an NFS file system, the new buffer is allocated without communicating with the NFS server to see if there is space for the buffer (to improve NFS performance). It is only when the buffer is written to the server (at file close or the buffer is full) that the disk-full condition is detected.]SEE ALSOcreat(2), dup(2), exec(2), fcntl(2), lockf(2), open(2), pipe(2), thread_safety(5).STANDARDS CONFORMANCEclose(2)
Related Man Pages |
---|
dup2(2) - mojave |
dup(2) - opensolaris |
close(2) - redhat |
dup2(2) - hpux |
dup(2) - osx |
Similar Topics in the Unix Linux Community |
---|
file system is full : But df -k shows space available |
/: write failed, file system full |
ls -l over NFS slow |
file pointer |
Ssh to Solaris 10 server - close connection |