diff options
author | kib <kib@FreeBSD.org> | 2017-05-31 09:25:47 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-05-31 09:25:47 +0000 |
commit | f5745bc759b102ec7bb2fbdc6123b42d7d0e2d93 (patch) | |
tree | 4e2789393b922104566532be4bce85999b9c8332 | |
parent | e12fd55de2c5ca019b86893c59ea8666e1380f19 (diff) | |
download | FreeBSD-src-f5745bc759b102ec7bb2fbdc6123b42d7d0e2d93.zip FreeBSD-src-f5745bc759b102ec7bb2fbdc6123b42d7d0e2d93.tar.gz |
MFC r319086:
Mention that the basep argument to getdirentries(2) can be NULL.
-rw-r--r-- | lib/libc/sys/getdirentries.2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2 index 3fe1632..03ae8df 100644 --- a/lib/libc/sys/getdirentries.2 +++ b/lib/libc/sys/getdirentries.2 @@ -124,7 +124,10 @@ or A value of zero is returned when the end of the directory has been reached. .Pp -The +If the +.Fa basep +pointer value is non-NULL , +the .Fn getdirentries system call writes the position of the block read into the location pointed to by .Fa basep . @@ -156,7 +159,7 @@ is not a valid file descriptor open for reading. .It Bq Er EFAULT Either .Fa buf -or +or non-NULL .Fa basep point outside the allocated address space. .It Bq Er EINVAL |