Function nix::unistd::setresgid [] [src]

pub fn setresgid(rgid: gid_t, egid: gid_t, sgid: gid_t) -> Result<()>

Sets the real, effective, and saved gid. (see setresuid(2))

Err is returned if the user doesn't have permission to set this GID.