Mention that the basep argument to getdirentries(2) can be NULL.

Noted by:	dim
Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D10972
This commit is contained in:
Konstantin Belousov
2017-05-28 21:42:47 +00:00
parent 4a57c6f1b6
commit a327b06f81
+5 -2
View File
@@ -125,7 +125,10 @@ or
A value of zero is returned when A value of zero is returned when
the end of the directory has been reached. the end of the directory has been reached.
.Pp .Pp
The If the
.Fa basep
pointer value is non-NULL ,
the
.Fn getdirentries .Fn getdirentries
system call writes the position of the block read into the location pointed to by system call writes the position of the block read into the location pointed to by
.Fa basep . .Fa basep .
@@ -158,7 +161,7 @@ is not a valid file descriptor open for reading.
.It Bq Er EFAULT .It Bq Er EFAULT
Either Either
.Fa buf .Fa buf
or or non-NULL
.Fa basep .Fa basep
point outside the allocated address space. point outside the allocated address space.
.It Bq Er EINVAL .It Bq Er EINVAL