pub unsafe fn setuid(uid: uid_t) -> Result<(), Errno>
Set user ID of the calling process to uid.
uid
let ret = unsafe { nc::setuid(0) }; assert_eq!(ret, Err(nc::EPERM));