summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-06-06 18:50:19 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-06-06 18:50:19 -0500
commit80f8320ffd9caf64542916a63f986ba1f95e4613 (patch)
tree91ccd5e2dc7d2d06aa783bb76cc6ccbef992dadd /src/fcntl.rs
parent5dedbc7850448ae3922ab0a833f3eb971bf7e25f (diff)
downloadnix-80f8320ffd9caf64542916a63f986ba1f95e4613.zip
Cleanup cfg blocks
Remove obsolete references to target_env = wasi, target_os = nacl, target_os = osx, and a typo'd target_os = fushsia that didn't compile when fixed. - target_env = wasi is dead: https://github.com/rust-lang/rust/pull/60117 - target_os = nacl is dead: https://github.com/rust-lang/rust/pull/45041 - target_os = osx is dead, but I can't find a link.
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index 7319302d..6f9fa15d 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -20,7 +20,7 @@ use crate::{
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
- any(target_os = "wasi", target_env = "wasi"),
+ target_os = "wasi",
target_env = "uclibc",
target_os = "freebsd"
))]
@@ -828,7 +828,7 @@ pub fn fspacectl_all(fd: RawFd, offset: libc::off_t, len: libc::off_t)
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
- any(target_os = "wasi", target_env = "wasi"),
+ target_os = "wasi",
target_env = "uclibc",
target_os = "freebsd"
))]
@@ -877,7 +877,7 @@ mod posix_fadvise {
target_os = "dragonfly",
target_os = "emscripten",
target_os = "fuchsia",
- any(target_os = "wasi", target_env = "wasi"),
+ target_os = "wasi",
target_os = "freebsd"
))]
pub fn posix_fallocate(fd: RawFd, offset: libc::off_t, len: libc::off_t) -> Result<()> {