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