diff options
Diffstat (limited to 'lib/libc/gen/directory.3')
-rw-r--r-- | lib/libc/gen/directory.3 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gen/directory.3 b/lib/libc/gen/directory.3 index cfe1439..ce1ead7 100644 --- a/lib/libc/gen/directory.3 +++ b/lib/libc/gen/directory.3 @@ -95,7 +95,9 @@ upon reaching the end of the directory or detecting an invalid .Fn seekdir operation. .Pp +The .Fn readdir_r +function provides the same functionality as .Fn readdir , but the caller must provide a directory @@ -108,7 +110,9 @@ upon reaching the end of the directory .Fa result is set to .Dv NULL . +The .Fn readdir_r +function returns 0 on success or an error number to indicate failure. .Pp The |