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