diff options
| author | Alexander Langer <alex@FreeBSD.org> | 1998-01-11 22:01:20 +0000 |
|---|---|---|
| committer | Alexander Langer <alex@FreeBSD.org> | 1998-01-11 22:01:20 +0000 |
| commit | 7ea0dca625ecf30607e925cbaf4618a7c0e1a34d (patch) | |
| tree | 9128cc3f768e0fd323351bc12cc254d8975a6e2e /lib | |
| parent | 6eba99b0db513a9fbef8aa05e397aa2d6069fd47 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/sys/getgroups.2 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2 index ea73890db9ce..6a16d55ec9d7 100644 --- a/lib/libc/sys/getgroups.2 +++ b/lib/libc/sys/getgroups.2 @@ -30,6 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94 +.\" $Id$ .\" .Dd April 16, 1994 .Dt GETGROUPS 2 @@ -38,7 +39,7 @@ .Nm getgroups .Nd get group access list .Sh SYNOPSIS -.Fd #include <sys/param.h> +.Fd #include <sys/types.h> .Fd #include <unistd.h> .Ft int .Fn getgroups "int gidsetlen" "gid_t *gidset" @@ -60,6 +61,13 @@ as defined in .Aq Pa sys/param.h , will ever be returned. +If +.Fa gidsetlen +is zero, +.Fn getgroups +returns the number of supplementary group IDs associated with +the calling process without modifying the array pointed to by +.Fa gidset . .Sh RETURN VALUES A successful call returns the number of groups in the group set. A value of -1 indicates that an error occurred, and the error |
