pub unsafe fn setreuid(ruid: uid_t, euid: uid_t) -> Result<(), Errno>
Set real and effective user IDs of the calling process.
let ret = unsafe { nc::setreuid(0, 0) }; assert_eq!(ret, Err(nc::EPERM));