devela::_dep::nc

Function setgid

pub unsafe fn setgid(gid: u32) -> Result<(), i32> 
Available on crate feature dep_nc only.
Expand description

Set the group ID of the calling process to gid.

§Examples

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