pub unsafe fn chroot<P: AsRef<Path>>(filename: P) -> Result<(), Errno>
Change the root directory.
let ret = unsafe { nc::chroot("/") }; assert_eq!(ret, Err(nc::EPERM));