From owner-svn-src-stable-9@FreeBSD.ORG Sun Jan 29 04:42:20 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88991106564A; Sun, 29 Jan 2012 04:42:20 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7573A8FC08; Sun, 29 Jan 2012 04:42:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0T4gKjg038081; Sun, 29 Jan 2012 04:42:20 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0T4gKIt038079; Sun, 29 Jan 2012 04:42:20 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201201290442.q0T4gKIt038079@svn.freebsd.org> From: Konstantin Belousov Date: Sun, 29 Jan 2012 04:42:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230723 - stable/9/lib/libc/sys X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2012 04:42:20 -0000 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 ,