pub unsafe fn getuid() -> uid_t
Get the real user ID of the calling process.
let uid = unsafe { nc::getuid() }; assert!(uid > 0);