Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2009 17:08:18 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r194299 - projects/ngroups/lib/libc/sys
Message-ID:  <200906161708.n5GH8Ixl034241@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Tue Jun 16 17:08:18 2009
New Revision: 194299
URL: http://svn.freebsd.org/changeset/base/194299

Log:
  Use POSIX documentation style {NGROUPS_MAX} notation instead of talking
  about NGROUPS or sysconf(_SC_NGROUPS_MAX).
  
  Note the getgroups conforms to POSIX.1.

Modified:
  projects/ngroups/lib/libc/sys/getgroups.2
  projects/ngroups/lib/libc/sys/setgroups.2

Modified: projects/ngroups/lib/libc/sys/getgroups.2
==============================================================================
--- projects/ngroups/lib/libc/sys/getgroups.2	Tue Jun 16 16:38:54 2009	(r194298)
+++ projects/ngroups/lib/libc/sys/getgroups.2	Tue Jun 16 17:08:18 2009	(r194299)
@@ -58,10 +58,7 @@ The
 system call
 returns the actual number of groups returned in
 .Fa gidset .
-No more than
-.Fn sysconf _SC_NGROUPS_MAX
-will ever
-be returned.
+At least one and as many as {NGROUPS_MAX}+1 values may be returned.
 If
 .Fa gidsetlen
 is zero,
@@ -91,8 +88,12 @@ an invalid address.
 .El
 .Sh SEE ALSO
 .Xr setgroups 2 ,
-.Xr initgroups 3 ,
-.Xr sysconf 3
+.Xr initgroups 3
+.Sh STANDARDS
+The
+.Fn getgroups
+system call conforms to
+.St -p1003.1-2008 .
 .Sh HISTORY
 The
 .Fn getgroups

Modified: projects/ngroups/lib/libc/sys/setgroups.2
==============================================================================
--- projects/ngroups/lib/libc/sys/setgroups.2	Tue Jun 16 16:38:54 2009	(r194298)
+++ projects/ngroups/lib/libc/sys/setgroups.2	Tue Jun 16 17:08:18 2009	(r194299)
@@ -53,7 +53,7 @@ The
 argument
 indicates the number of entries in the array and must be no
 more than
-.Fn sysconf _SC_NGROUPS_MAX .
+.Dv {NGROUPS_MAX}+1 .
 .Pp
 Only the super-user may set a new group list.
 .Sh RETURN VALUES
@@ -69,7 +69,7 @@ The caller is not the super-user.
 The number specified in the
 .Fa ngroups
 argument is larger than the
-.Fn sysconf _SC_NGROUPS_MAX
+.Dv {NGROUPS_MAX}+1
 limit.
 .It Bq Er EFAULT
 The address specified for



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