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:
parent
4a57c6f1b6
commit
a327b06f81
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319086
@ -125,7 +125,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 .
|
||||
@ -158,7 +161,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
|
||||
|
Loading…
Reference in New Issue
Block a user