Function nc::setegid

source ·
pub unsafe fn setegid(gid: gid_t) -> Result<(), Errno>
Expand description

Set the effective group ID of the calling process to gid.

§Example

let ret = unsafe { nc::setegid(0) };
assert!(ret.is_err());
assert_eq!(ret, Err(nc::EPERM));