svn commit: r319311 - stable/10/lib/libc/sys

Konstantin Belousov kib at FreeBSD.org
Wed May 31 09:25:48 UTC 2017


Author: kib
Date: Wed May 31 09:25:47 2017
New Revision: 319311
URL: https://svnweb.freebsd.org/changeset/base/319311

Log:
  MFC r319086:
  Mention that the basep argument to getdirentries(2) can be NULL.

Modified:
  stable/10/lib/libc/sys/getdirentries.2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/getdirentries.2
==============================================================================
--- stable/10/lib/libc/sys/getdirentries.2	Wed May 31 09:23:21 2017	(r319310)
+++ stable/10/lib/libc/sys/getdirentries.2	Wed May 31 09:25:47 2017	(r319311)
@@ -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


More information about the svn-src-all mailing list