From owner-svn-src-all@FreeBSD.ORG Thu Feb 9 20:49:03 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 B4FA9106568A; Thu, 9 Feb 2012 20:49:03 +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 A3D0F8FC12; Thu, 9 Feb 2012 20:49:03 +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 q19Kn3ud028151; Thu, 9 Feb 2012 20:49:03 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q19Kn3R2028149; Thu, 9 Feb 2012 20:49:03 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201202092049.q19Kn3R2028149@svn.freebsd.org> From: Eitan Adler Date: Thu, 9 Feb 2012 20:49:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231299 - head/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: Thu, 09 Feb 2012 20:49:03 -0000 Author: eadler Date: Thu Feb 9 20:49:03 2012 New Revision: 231299 URL: http://svn.freebsd.org/changeset/base/231299 Log: More accurately document what happens on error. PR: docs/127908 Submitted by: Matthew D. Fuller Approved by: cperciva MFC after: 1 week Modified: head/lib/libc/gen/directory.3 Modified: head/lib/libc/gen/directory.3 ============================================================================== --- head/lib/libc/gen/directory.3 Thu Feb 9 20:44:20 2012 (r231298) +++ head/lib/libc/gen/directory.3 Thu Feb 9 20:49:03 2012 (r231299) @@ -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