]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(Reading/Closing Directory): Document readdir_r behaviour on EOD.
authorUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 1998 11:13:09 +0000 (11:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 1998 11:13:09 +0000 (11:13 +0000)
manual/filesys.texi

index 889c083c12a821209581549cfdca40a47d052e8e..3a1e1f5bfc9a07ee665e1cc100268d831a405b52 100644 (file)
@@ -352,6 +352,9 @@ successfully.  In this case a pointer to the result is returned in
 the function returns @code{-1}.  The @code{errno} variable is set like
 described for @code{readdir}.
 
+If there are no more directory entries, @code{readdir_r}'s return value is
+@code{0}, and *@var{result} is set to @code{NULL}.
+
 @strong{Portability Note:} On some systems, @code{readdir_r} may not
 return a terminated string as the file name even if no @code{d_reclen}
 element is available in @code{struct dirent} and the file name as the