getgroups (2) Linux Manual Page
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 Descriptiongetgroups() returns the supplementary group IDs of the calling process in…
