diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-05-20 01:37:57 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-05-20 01:37:57 +0200 |
| commit | 03e90b7f7e945c8bb384f24c3111695c5c96671f (patch) | |
| tree | 141bbda6b9d9755610b4c6a2d0a10d59d517e4b9 /library/std/src/sys | |
| parent | 63791233ff9ac59aaebce685cda679ace6869960 (diff) | |
| download | rust-03e90b7f7e945c8bb384f24c3111695c5c96671f.tar.gz rust-03e90b7f7e945c8bb384f24c3111695c5c96671f.zip | |
Not implement `os::unix::fs::chroot` for `vxworks`
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/unix/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs index 79617aa77b7..94ca3a6d713 100644 --- a/library/std/src/sys/unix/fs.rs +++ b/library/std/src/sys/unix/fs.rs @@ -1329,7 +1329,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> { Ok(bytes_copied as u64) } -#[cfg(not(target_os = "fuchsia"))] +#[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))] pub fn chroot(dir: &Path) -> io::Result<()> { let dir = cstr(dir)?; cvt(unsafe { libc::chroot(dir.as_ptr()) })?; |
