Function chroot
pub unsafe fn chroot<P>(filename: P) -> Result<(), i32> ⓘ
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));