Author: kib
Date: Sun May 28 21:42:47 2017
New Revision: 319086
URL: https://svnweb.freebsd.org/changeset/base/319086

Log:
  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

Modified:
  head/lib/libc/sys/getdirentries.2

Modified: head/lib/libc/sys/getdirentries.2
==============================================================================
--- head/lib/libc/sys/getdirentries.2   Sun May 28 21:30:01 2017        
(r319085)
+++ head/lib/libc/sys/getdirentries.2   Sun May 28 21:42:47 2017        
(r319086)
@@ -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 
 .It Bq Er EFAULT
 Either
 .Fa buf
-or
+or non-NULL
 .Fa basep
 point outside the allocated address space.
 .It Bq Er EINVAL
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to