1use crate::{backend, io, path};
2
3/// `chroot(path)`—Change the process root directory.
4///
5/// # References
6/// - [Linux]
7///
8/// [Linux]: https://man7.org/linux/man-pages/man2/chroot.2.html
9#[inline]
10pub fn chroot<P: path::Arg>(path: P) -> io::Result<()> {
11 path.into_with_c_str(backend::process::syscalls::chroot)
12}
13