Function nc::setreuid [−][src]
pub fn setreuid(ruid: uid_t, euid: uid_t) -> Result<(), Errno>
Expand description
Set real and effective user IDs of the calling process.
let ret = nc::setreuid(0, 0); assert_eq!(ret, Err(nc::EPERM));