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.
This commit is contained in:
Bruce Evans 1999-03-05 10:29:34 +00:00
parent c40956e25d
commit 07799a2af1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44478

View file

@ -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