gid_t getgid(void); gid_t getegid(void);
getegid() returns the effective group ID of the current process.
setgid (2)
setregid (2)
Advertisement