Function nc::chroot

source ·
pub unsafe fn chroot<P: AsRef<Path>>(filename: P) -> Result<(), Errno>
Expand description

Change the root directory.

§Example

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