aboutsummaryrefslogtreecommitdiff
path: root/manual/filesys.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-10 11:10:51 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-10 11:10:51 +0000
commitc063ba610a6058cacddf2e3d156f478c7b969f87 (patch)
tree817fe899699e8c9ffa5e0e308a41e687430acfba /manual/filesys.texi
parent54fce91d605e1ef51303508b7adc22e01c092757 (diff)
downloadglibc-c063ba610a6058cacddf2e3d156f478c7b969f87.tar
glibc-c063ba610a6058cacddf2e3d156f478c7b969f87.tar.gz
glibc-c063ba610a6058cacddf2e3d156f478c7b969f87.tar.bz2
glibc-c063ba610a6058cacddf2e3d156f478c7b969f87.zip
Update.
1998-03-10 19:43 Matthias Urlichs <urlichs@noris.de> * sysdeps/unix/readdir_r.c: zero out *result on EOF. * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise. * manual/filesys/texi: document this.
Diffstat (limited to 'manual/filesys.texi')
-rw-r--r--manual/filesys.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/manual/filesys.texi b/manual/filesys.texi
index 3b125cd3f0..951ae7956c 100644
--- a/manual/filesys.texi
+++ b/manual/filesys.texi
@@ -354,6 +354,9 @@ successfully. In this case a pointer to the result is returned in
the function returns a value indicating the error (as 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