Function getresuid
pub unsafe fn getresuid(
ruid: &mut u32,
euid: &mut u32,
suid: &mut u32,
) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Get real, effect and saved user ID.
§Examples
let mut ruid = 0;
let mut euid = 0;
let mut suid = 0;
let ret = unsafe { nc::getresuid(&mut ruid, &mut euid, &mut suid) };
assert!(ret.is_ok());
assert!(ruid > 0);
assert!(euid > 0);
assert!(suid > 0);