getgroups (2) Linux Manual Page
NAME getgroups, setgroups – get/set list of supplementary group IDs SYNOPSIS #include <sys/types.h> #include <unistd.h> int getgroups(int size, gid_t list[]); #include <grp.h> int setgroups(size_t size, const gid_t *list); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): setgroups(): Since glibc 2.19: _DEFAULT_SOURCE Glibc 2.19 and earlier: _BSD_SOURCE DESCRIPTION getgroups() returns the supplementary group IDs of the…
