[][src]Function simple_libc::process::chroot

pub fn chroot<P: AsRef<Path>>(path: P) -> Result<()>

Attempts to change the root directory of the current process to the specified path.

In addition to the normal errors, this will return an error if the given path contains a null byte.