Skip to content

Commit c4c0d20

Browse files
redox: pause and clock_settime
1 parent 287214b commit c4c0d20

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/backend/libc/event/syscalls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ pub(crate) fn port_send(
477477
unsafe { ret(c::port_send(borrowed_fd(port), events, userdata)) }
478478
}
479479

480-
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
480+
#[cfg(not(target_os = "wasi"))]
481481
pub(crate) fn pause() {
482482
let r = unsafe { c::pause() };
483483
let errno = libc_errno::errno().0;

src/backend/libc/time/syscalls.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,7 @@ fn clock_gettime_dynamic_old(id: c::clockid_t) -> io::Result<Timespec> {
258258
})
259259
}
260260

261-
#[cfg(not(any(
262-
target_os = "redox",
263-
target_os = "wasi",
264-
all(apple, not(target_os = "macos"))
265-
)))]
261+
#[cfg(not(any(target_os = "wasi", all(apple, not(target_os = "macos")))))]
266262
#[inline]
267263
pub(crate) fn clock_settime(id: ClockId, timespec: Timespec) -> io::Result<()> {
268264
// Old 32-bit version: libc has `clock_gettime` but it is not y2038 safe by

src/event/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub mod epoll;
1111
mod eventfd;
1212
#[cfg(bsd)]
1313
pub mod kqueue;
14-
#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))]
14+
#[cfg(not(any(windows, target_os = "wasi")))]
1515
mod pause;
1616
mod poll;
1717
#[cfg(solarish)]
@@ -27,7 +27,7 @@ pub use crate::timespec::{Nsecs, Secs, Timespec};
2727
target_os = "espidf"
2828
))]
2929
pub use eventfd::{eventfd, EventfdFlags};
30-
#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))]
30+
#[cfg(not(any(windows, target_os = "wasi")))]
3131
pub use pause::*;
3232
pub use poll::{poll, PollFd, PollFlags};
3333
#[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))]

0 commit comments

Comments
 (0)