int setegid(gid_t id);
Sets the effective group ID of the current process to id. Returns zero on success, or the negation of the error code on error.
getegid, getgid, setgid, setregid