Module Name:    src
Committed By:   jruoho
Date:           Mon May 17 03:04:09 UTC 2010

Modified Files:
        src/lib/libc/gen: directory.3

Log Message:
Fix the note about errno in ERRORS; telldir(3), seekdir(3), and rewinddir(3)
do not set the errno.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/gen/directory.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/directory.3
diff -u src/lib/libc/gen/directory.3:1.32 src/lib/libc/gen/directory.3:1.33
--- src/lib/libc/gen/directory.3:1.32	Sun May 16 11:37:06 2010
+++ src/lib/libc/gen/directory.3	Mon May 17 03:04:09 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: directory.3,v 1.32 2010/05/16 11:37:06 wiz Exp $
+.\"	$NetBSD: directory.3,v 1.33 2010/05/17 03:04:09 jruoho Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)directory.3	8.1 (Berkeley) 6/4/93
 .\"
-.Dd May 16, 2010
+.Dd May 17, 2010
 .Dt DIRECTORY 3
 .Os
 .Sh NAME
@@ -258,13 +258,6 @@
 .Xr fchdir 2
 function.
 .El
-.Pp
-.\"
-.\" XXX: The returned errors should be enumerated.
-.\"
-All described functions that return a value may set
-.Vt errno
-to indicate the error.
 .Sh EXAMPLES
 Sample code which searches a directory for entry
 .Dq name
@@ -364,6 +357,21 @@
 However, if both the parent and child processes use these functions,
 the result is undefined.
 .El
+.Sh ERRORS
+.\"
+.\" XXX: The errors should be enumerated.
+.\"
+Upon failure, the functions
+.Fn opendir ,
+.Fn fdopendir ,
+.Fn readdir ,
+.Fn readdir_r ,
+.Fn closedir ,
+and
+.Fn dirfd
+may set
+.Vt errno
+to indicate the error.
 .Sh SEE ALSO
 .Xr close 2 ,
 .Xr lseek 2 ,

Reply via email to