Function nc::setresgid

source ·
pub unsafe fn setresgid(
    rgid: gid_t,
    egid: gid_t,
    sgid: gid_t
) -> Result<(), Errno>
Expand description

Set real, effective and saved group Ids of the calling process.

§Example

let ret = unsafe { nc::setresgid(0, 0, 0) };
assert_eq!(ret, Err(nc::EPERM));