Function nc::setuid[][src]

pub fn setuid(uid: uid_t) -> Result<(), Errno>
Expand description

Set the effective user ID of the calling process to uid.

let ret = nc::setuid(0);
assert_eq!(ret, Err(nc::EPERM));