Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2017 21:42:47 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319086 - head/lib/libc/sys
Message-ID:  <201705282142.v4SLglhx014692@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705282142.v4SLglhx014692>