svn commit: r194299 - projects/ngroups/lib/libc/sys
Brooks Davis
brooks at FreeBSD.org
Tue Jun 16 17:08:18 UTC 2009
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
More information about the svn-src-projects
mailing list