devela::_dep::nc

Function setfsuid

pub unsafe fn setfsuid(fsuid: u32) -> Result<u32, i32> 
Available on crate feature dep_nc only.
Expand description

Set user identify used for filesystem checkes.

§Examples

let ret = unsafe { nc::setfsuid(0) };
assert!(ret.is_ok());
let uid = unsafe { nc::getuid() };
assert_eq!(ret, Ok(uid));