devela::_dep::nc::call

Function getresgid

pub unsafe fn getresgid(
    rgid: &mut u32,
    egid: &mut u32,
    sgid: &mut u32,
) -> Result<(), i32> 
Available on crate feature dep_nc only.
Expand description

Get real, effect and saved group ID.

§Examples

let mut rgid = 0;
let mut egid = 0;
let mut sgid = 0;
let ret = unsafe { nc::getresgid(&mut rgid, &mut egid, &mut sgid) };
assert!(ret.is_ok());
assert!(rgid > 0);
assert!(egid > 0);
assert!(sgid > 0);