devela::_dep::nc

Function chroot

pub unsafe fn chroot<P>(filename: P) -> Result<(), i32> 
where P: AsRef<Path>,
Available on crate feature dep_nc only.
Expand description

Change the root directory.

§Examples

let ret = unsafe { nc::chroot("/") };
assert_eq!(ret, Err(nc::EPERM));