From owner-svn-src-all@FreeBSD.ORG Fri Feb 17 00:55:26 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBDAE106566C; Fri, 17 Feb 2012 00:55:26 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AA9458FC16; Fri, 17 Feb 2012 00:55:26 +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 q1H0tQZC042423; Fri, 17 Feb 2012 00:55:26 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1H0tQEE042421; Fri, 17 Feb 2012 00:55:26 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201202170055.q1H0tQEE042421@svn.freebsd.org> From: Eitan Adler Date: Fri, 17 Feb 2012 00:55:26 +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: r231847 - stable/9/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 00:55:26 -0000 Author: eadler Date: Fri Feb 17 00:55:26 2012 New Revision: 231847 URL: http://svn.freebsd.org/changeset/base/231847 Log: MFC r231299: - More accurately document what happens on error. PR: docs/127908 Approved by: cperciva Modified: stable/9/lib/libc/gen/directory.3 Directory Properties: stable/9/lib/libc/ (props changed) Modified: stable/9/lib/libc/gen/directory.3 ============================================================================== --- stable/9/lib/libc/gen/directory.3 Fri Feb 17 00:27:48 2012 (r231846) +++ stable/9/lib/libc/gen/directory.3 Fri Feb 17 00:55:26 2012 (r231847) @@ -122,9 +122,12 @@ function returns a pointer to the next directory entry. It returns .Dv NULL -upon reaching the end of the directory or detecting an invalid -.Fn seekdir -operation. +upon reaching the end of the directory or on error. +In the event of an error, +.Va errno +may be set to any of the values documented for the +.Xr getdirentries 2 +system call. .Pp The .Fn readdir_r