Function nc::setgid[][src]

pub fn setgid(gid: gid_t) -> Result<(), Errno>
Expand description

Set the group ID of the calling process to gid.

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