setregid function

void setregid(
  1. int rgid,
  2. int egid
)

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);
}