diff options
Diffstat (limited to 'lib/libc/gen/directory.3')
-rw-r--r-- | lib/libc/gen/directory.3 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/gen/directory.3 b/lib/libc/gen/directory.3 index ce1ead7..5cd6667 100644 --- a/lib/libc/gen/directory.3 +++ b/lib/libc/gen/directory.3 @@ -78,7 +78,8 @@ with it and returns a pointer to be used to identify the .Em directory stream -in subsequent operations. The pointer +in subsequent operations. +The pointer .Dv NULL is returned if .Fa filename @@ -89,7 +90,8 @@ enough memory to hold the whole thing. The .Fn readdir function -returns a pointer to the next directory entry. It returns +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 @@ -102,7 +104,8 @@ provides the same functionality as .Fn readdir , but the caller must provide a directory .Fa entry -buffer to store the results in. If the read succeeds, +buffer to store the results in. +If the read succeeds, .Fa result is pointed at the .Fa entry ; @@ -126,7 +129,8 @@ are good only for the lifetime of the .Dv DIR pointer, .Fa dirp , -from which they are derived. If the directory is closed and then +from which they are derived. +If the directory is closed and then reopened, prior values returned by .Fn telldir will no longer be valid. |