Clarify relationship of file descriptor and open file description.

This commit is contained in:
Michael Kerrisk 2007-12-26 11:43:15 +00:00
parent 24d6938351
commit 12d8baeb45
1 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@
.\" Modified 2000-07-22 by Nicolás Lichtmaier <nick@debian.org>
.\" added note about close(2) not guaranteeing that data is safe on close.
.\"
.TH CLOSE 2 2001-12-13 "Linux" "Linux Programmer's Manual"
.TH CLOSE 2 2007-12-28 "Linux" "Linux Programmer's Manual"
.SH NAME
close \- close a file descriptor
.SH SYNOPSIS
@ -53,8 +53,10 @@ descriptor that was used to obtain the lock).
.PP
If
.I fd
is the last copy of a particular file descriptor the resources
associated with it are freed;
is the last file descriptor referring to the underlying
open file description (see
.BR open (2)),
the resources associated with the open file description are freed;
if the descriptor was the last reference to a file which has been
removed using
.BR unlink (2)