getgid - get real group identity
#include <unistd.h> #include <sys/types.h>
gid_t getgid(void);
getgid(2) returns the real group ID of the current process. A process may be a member of multiple groups, see getgroups(2) for more information.
The real ID corresponds to the ID of the calling process. See RealID for more information.
These functions are always successful.
POSIX, BSD 4.3
7 pages link to getgid(2):