summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-03-05 10:29:34 +0000
committerbde <bde@FreeBSD.org>1999-03-05 10:29:34 +0000
commit8c8e1f3972b741bb7506bc2ff5f1a6a1912d5e2b (patch)
treeb7045a73bafb63d97039256291e874c3cad89388 /lib
parent6c9764d077e6c518ff7a4613d57d02d008f93037 (diff)
downloadFreeBSD-src-8c8e1f3972b741bb7506bc2ff5f1a6a1912d5e2b.zip
FreeBSD-src-8c8e1f3972b741bb7506bc2ff5f1a6a1912d5e2b.tar.gz
Backed out most of rev.1.4. I didn't submit it; I only submitted a
request for it something like it. It was poorly worded and too far from both POSIX wording and normal (mal)practice by referring to sysconf(_SC_NGROUPS_MAX) instead of {NGROUPS_MAX} or NGROUPS. POSIX.1 uses curly braces to mark up "symbolic constants or limits [that may be] defined in certain headers". Since we don't document this markup, don't use it. Just use NGROUPS_MAX.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getgroups.215
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2
index 7bda945..82a9338 100644
--- a/lib/libc/sys/getgroups.2
+++ b/lib/libc/sys/getgroups.2
@@ -30,9 +30,9 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94
-.\" $Id: getgroups.2,v 1.3 1998/01/11 22:01:20 alex Exp $
+.\" $Id: getgroups.2,v 1.4 1998/01/13 01:30:17 alex Exp $
.\"
-.Dd April 16, 1994
+.Dd March 5, 1999
.Dt GETGROUPS 2
.Os BSD 4.2
.Sh NAME
@@ -54,9 +54,11 @@ indicates the number of entries that may be placed in
.Fa gidset .
.Fn Getgroups
returns the actual number of groups returned in
-.Fa gidset ,
-which is limited to the value returned by
-.Fn sysconf _SC_NGROUPS_MAX .
+.Fa gidset .
+No more than
+.Dv NGROUPS_MAX
+will ever
+be returned.
If
.Fa gidsetlen
is zero,
@@ -86,8 +88,7 @@ an invalid address.
.El
.Sh SEE ALSO
.Xr setgroups 2 ,
-.Xr initgroups 3 ,
-.Xr sysconf 3
+.Xr initgroups 3
.Sh HISTORY
The
.Fn getgroups
OpenPOWER on IntegriCloud