Dump the constant NGROUPS in favor of the POSIX way:
sysconf(_SC_NGROUPS_MAX). Submitted by: bde
This commit is contained in:
parent
e4a6f1ad1f
commit
26db1da8a9
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94
|
||||
.\" $Id$
|
||||
.\" $Id: getgroups.2,v 1.3 1998/01/11 22:01:20 alex Exp $
|
||||
.\"
|
||||
.Dd April 16, 1994
|
||||
.Dt GETGROUPS 2
|
||||
|
@ -54,13 +54,9 @@ indicates the number of entries that may be placed in
|
|||
.Fa gidset .
|
||||
.Fn Getgroups
|
||||
returns the actual number of groups returned in
|
||||
.Fa gidset .
|
||||
No more than
|
||||
.Dv NGROUPS ,
|
||||
as defined in
|
||||
.Aq Pa sys/param.h ,
|
||||
will ever
|
||||
be returned.
|
||||
.Fa gidset ,
|
||||
which is limited to the value returned by
|
||||
.Fn sysconf _SC_NGROUPS_MAX .
|
||||
If
|
||||
.Fa gidsetlen
|
||||
is zero,
|
||||
|
@ -90,7 +86,8 @@ an invalid address.
|
|||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr setgroups 2 ,
|
||||
.Xr initgroups 3
|
||||
.Xr initgroups 3 ,
|
||||
.Xr sysconf 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn getgroups
|
||||
|
|
Loading…
Reference in New Issue