Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 09:23:21 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r319310 - stable/11/lib/libc/sys
Message-ID:  <201705310923.v4V9NLPF040730@repo.freebsd.org>

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



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