summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-01-13 01:30:17 +0000
committeralex <alex@FreeBSD.org>1998-01-13 01:30:17 +0000
commitd53da9d8fe3ec999684208c49333e3dc46fd5608 (patch)
tree6d63ced4df04368315bc348a9356472c4c726925 /lib/libc/sys
parent99545301cb16315389f9997c664e8fec7edd1f61 (diff)
downloadFreeBSD-src-d53da9d8fe3ec999684208c49333e3dc46fd5608.zip
FreeBSD-src-d53da9d8fe3ec999684208c49333e3dc46fd5608.tar.gz
Dump the constant NGROUPS in favor of the POSIX way:
sysconf(_SC_NGROUPS_MAX). Submitted by: bde
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/getgroups.215
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2
index 6a16d55..7bda945 100644
--- a/lib/libc/sys/getgroups.2
+++ b/lib/libc/sys/getgroups.2
@@ -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
OpenPOWER on IntegriCloud