mirror of https://github.com/mkerrisk/man-pages
Clarify relationship of file descriptor and open file description.
This commit is contained in:
parent
24d6938351
commit
12d8baeb45
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue