Function nc::setresgid[][src]

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

Set real, effective and saved group Ids of the calling process.

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