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.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94
|
.\" @(#)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
|
.Dd April 16, 1994
|
||||||
.Dt GETGROUPS 2
|
.Dt GETGROUPS 2
|
||||||
|
@ -54,13 +54,9 @@ indicates the number of entries that may be placed in
|
||||||
.Fa gidset .
|
.Fa gidset .
|
||||||
.Fn Getgroups
|
.Fn Getgroups
|
||||||
returns the actual number of groups returned in
|
returns the actual number of groups returned in
|
||||||
.Fa gidset .
|
.Fa gidset ,
|
||||||
No more than
|
which is limited to the value returned by
|
||||||
.Dv NGROUPS ,
|
.Fn sysconf _SC_NGROUPS_MAX .
|
||||||
as defined in
|
|
||||||
.Aq Pa sys/param.h ,
|
|
||||||
will ever
|
|
||||||
be returned.
|
|
||||||
If
|
If
|
||||||
.Fa gidsetlen
|
.Fa gidsetlen
|
||||||
is zero,
|
is zero,
|
||||||
|
@ -90,7 +86,8 @@ an invalid address.
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr setgroups 2 ,
|
.Xr setgroups 2 ,
|
||||||
.Xr initgroups 3
|
.Xr initgroups 3 ,
|
||||||
|
.Xr sysconf 3
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
The
|
The
|
||||||
.Fn getgroups
|
.Fn getgroups
|
||||||
|
|
Loading…
Reference in New Issue