Function setresgid
pub unsafe fn setresgid(rgid: u32, egid: u32, sgid: u32) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Set real, effective and saved group Ids of the calling process.
§Examples
let ret = unsafe { nc::setresgid(0, 0, 0) };
assert_eq!(ret, Err(nc::EPERM));