Function nc::setregid[][src]

pub fn setregid(rgid: gid_t, egid: gid_t) -> Result<(), Errno>
Expand description

Set real and effective group IDs of the calling process.

let ret = nc::setregid(0, 0);
assert_eq!(ret, Err(nc::EPERM));