svn commit: r230460 - head/lib/libc/sys

[ Available lists | Index of svn-src-all | Month of Jan 2012 | Week of 22 Jan 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Konstantin Belousov <kib@FreeBSD.org>
Date
22 Jan 2012 11:58:18
Subject
svn commit: r230460 - head/lib/libc/sys
Message-ID
201201221158.q0MBwIvf074955@svn.freebsd.org


[ Hide this part ]
Author: kib
Date: Sun Jan 22 11:58:17 2012
New Revision: 230460
URL: http://svn.freebsd.org/changeset/base/230460

Log:
Clarify the implementation-defined behaviour in case of close(2)
returning error.

MFC after: 1 week

Modified:
head/lib/libc/sys/close.2

Modified: head/lib/libc/sys/close.2
==============================================================================
--- head/lib/libc/sys/close.2 Sun Jan 22 11:35:50 2012 (r230459)
+++ head/lib/libc/sys/close.2 Sun Jan 22 11:58:17 2012 (r230460)
@@ -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, cache
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 ,

Elapsed time: 0.079 seconds