summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-01-22 11:58:17 +0000
committerkib <kib@FreeBSD.org>2012-01-22 11:58:17 +0000
commit676a5013ed74433581d00542d1ce0a34b8329a12 (patch)
treee36e60e7cb9b7e592d2881ab2ca61daf7de12811 /lib
parent593388ddc7d67c10901c879229e34c2e2055081f (diff)
downloadFreeBSD-src-676a5013ed74433581d00542d1ce0a34b8329a12.zip
FreeBSD-src-676a5013ed74433581d00542d1ce0a34b8329a12.tar.gz
Clarify the implementation-defined behaviour in case of close(2)
returning error. MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/close.26
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2
index 524322b..c3a0972 100644
--- a/lib/libc/sys/close.2
+++ b/lib/libc/sys/close.2
@@ -28,7 +28,7 @@
.\" @(#)close.2 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$
.\"
-.Dd December 4, 2006
+.Dd January 22, 2012
.Dt CLOSE 2
.Os
.Sh NAME
@@ -118,6 +118,10 @@ The underlying object did not fit, cached data was lost.
The underlying object was a stream socket that was shut down by the peer
before all pending data was delivered.
.El
+.Pp
+In case of any error except
+.Er EBADF ,
+the supplied file descriptor is deallocated and therefore is no longer valid.
.Sh SEE ALSO
.Xr accept 2 ,
.Xr closefrom 2 ,
OpenPOWER on IntegriCloud