pub unsafe fn getegid() -> gid_t
Get the effective group ID of the calling process.
let egid = unsafe { nc::getegid() }; assert!(egid > 0);