aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-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