diff options
-rw-r--r-- | src/sys/signal.rs | 1 | ||||
-rw-r--r-- | src/unistd.rs | 4 | ||||
-rw-r--r-- | test/test.rs | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/sys/signal.rs b/src/sys/signal.rs index b49a9f53..811071bd 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -464,7 +464,6 @@ impl SigSet { /// Suspends execution of the calling thread until one of the signals in the /// signal mask becomes pending, and returns the accepted signal. - #[cfg(not(target_os = "redox"))] pub fn wait(&self) -> Result<Signal> { let mut signum = mem::MaybeUninit::uninit(); let res = unsafe { libc::sigwait(&self.sigset as *const libc::sigset_t, signum.as_mut_ptr()) }; diff --git a/src/unistd.rs b/src/unistd.rs index 53e0ecc9..f06f7232 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -505,7 +505,7 @@ pub fn mkdir<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> { /// } /// ``` #[inline] -#[cfg(not(target_os = "redox"))] +#[cfg(not(target_os = "redox"))] // RedoxFS does not support fifo yet pub fn mkfifo<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> { let res = path.with_nix_path(|cstr| { unsafe { libc::mkfifo(cstr.as_ptr(), mode.bits() as mode_t) } @@ -1327,6 +1327,7 @@ pub fn fsync(fd: RawFd) -> Result<()> { // TODO: exclude only Apple systems after https://github.com/rust-lang/libc/pull/211 #[cfg(any(target_os = "linux", target_os = "android", + target_os = "redox", target_os = "emscripten"))] #[inline] pub fn fdatasync(fd: RawFd) -> Result<()> { @@ -1661,7 +1662,6 @@ pub fn initgroups(user: &CStr, group: Gid) -> Result<()> { /// /// See also [pause(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/pause.html). #[inline] -#[cfg(not(target_os = "redox"))] pub fn pause() { unsafe { libc::pause() }; } diff --git a/test/test.rs b/test/test.rs index 0bc8341d..29cc8aa3 100644 --- a/test/test.rs +++ b/test/test.rs @@ -150,7 +150,6 @@ mod test_mq; #[cfg(not(target_os = "redox"))] mod test_net; mod test_nix_path; -#[cfg(not(target_os = "redox"))] mod test_poll; #[cfg(not(target_os = "redox"))] mod test_pty; |