From 07799a2af1c7af4dea1742dbcd2987b92b5b1e80 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 5 Mar 1999 10:29:34 +0000 Subject: [PATCH] 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. --- lib/libc/sys/getgroups.2 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2 index 7bda9453d1d..82a93386dee 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