SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int getgroups(int gidsetsize, gid_t *grouplist);
DESCRIPTION
The
PARAMETERS
- gidsetsize
-
Specifies the number of elements in the supplied array grouplist. If gidsetsize is zero,
getgroups() returns the number of supplementary group IDs associated with the calling process without modifying the array that the grouplist parameter points to. - grouplist
-
Is the array where
getgroups() supplies the supplementary group IDs of the calling process. It returns the actual number of supplementary group IDs stored in the array.
RETURN VALUES
If successful,
CONFORMANCE
POSIX.1 (1996), with exceptions.
MULTITHREAD SAFETY LEVEL
Async-signal-safe.
PORTING ISSUES
None.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
MKS Toolkit 9.3 Documentation Build 6.