Sha256: 01191eeb86295975874019dc675cb0f8f0ca5f79dd78dc9d1c791a952adb3512

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

#[cfg(feature = "fs")]
#[cfg_attr(docsrs, doc(cfg(feature = "fs")))]
use crate::{backend, io, path};

/// `chroot(path)`—Change the process root directory.
///
/// # References
///  - [Linux]
///
/// [Linux]: https://man7.org/linux/man-pages/man2/chroot.2.html
#[cfg(feature = "fs")]
#[cfg_attr(docsrs, doc(cfg(feature = "fs")))]
#[inline]
pub fn chroot<P: path::Arg>(path: P) -> io::Result<()> {
    path.into_with_c_str(backend::process::syscalls::chroot)
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rustix-0.38.44/src/process/chroot.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rustix-0.38.43/src/process/chroot.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rustix-0.38.41/src/process/chroot.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rustix-0.38.37/src/process/chroot.rs