setregid function
Set the real group ID of the calling process to RGID, and the effective group ID of the calling process to EGID. Throws PosixException if the operation fails.
Implementation
void setregid(
int rgid,
int egid,
) {
native_setregid(rgid, egid);
}