gid_t getgid(void);
Returns the real group ID of the current process.
getegid, setgid, setegid, setregid