aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-02-09 20:49:03 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-02-09 20:49:03 +0000
commit7c88c0d0e1871d15e9c876013f8f0202927a6a52 (patch)
treecb7dd138cb1bc2196359bd7ccbb0bdedaeeb8edc /lib
parentb169a3323535e412040de6b04d3624d93347c400 (diff)
downloadsrc-7c88c0d0e1871d15e9c876013f8f0202927a6a52.tar.gz
src-7c88c0d0e1871d15e9c876013f8f0202927a6a52.zip
More accurately document what happens on error.
PR: docs/127908 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> Approved by: cperciva MFC after: 1 week
Notes
Notes: svn path=/head/; revision=231299
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/directory.39
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/gen/directory.3 b/lib/libc/gen/directory.3
index 992d2fcde520..1c568fc14b1b 100644
--- a/lib/libc/gen/directory.3
+++ b/lib/libc/gen/directory.3
@@ -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