Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 04:42:20 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r230723 - stable/9/lib/libc/sys
Message-ID:  <201201290442.q0T4gKIt038079@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Jan 29 04:42:19 2012
New Revision: 230723
URL: http://svn.freebsd.org/changeset/base/230723

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

Modified:
  stable/9/lib/libc/sys/close.2
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/sys/close.2
==============================================================================
--- stable/9/lib/libc/sys/close.2	Sun Jan 29 02:13:01 2012	(r230722)
+++ stable/9/lib/libc/sys/close.2	Sun Jan 29 04:42:19 2012	(r230723)
@@ -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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201290442.q0T4gKIt038079>