svn commit: r319310 - stable/11/lib/libc/sys
Konstantin Belousov
kib at FreeBSD.org
Wed May 31 09:23:23 UTC 2017
Author: kib
Date: Wed May 31 09:23:21 2017
New Revision: 319310
URL: https://svnweb.freebsd.org/changeset/base/319310
Log:
MFC r319086:
Mention that the basep argument to getdirentries(2) can be NULL.
Modified:
stable/11/lib/libc/sys/getdirentries.2
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/lib/libc/sys/getdirentries.2
==============================================================================
--- stable/11/lib/libc/sys/getdirentries.2 Wed May 31 08:47:09 2017 (r319309)
+++ stable/11/lib/libc/sys/getdirentries.2 Wed May 31 09:23:21 2017 (r319310)
@@ -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 .
@@ -157,7 +160,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
More information about the svn-src-stable-11
mailing list