| 1468 | |
| 1469 | #if __GLIBC_PREREQ(2, 8) |
| 1470 | WasiExpect<void> Poller::Timer::create() noexcept { |
| 1471 | if (const auto NewFd = |
| 1472 | ::timerfd_create(toClockId(Clock), TFD_NONBLOCK | TFD_CLOEXEC); |
| 1473 | unlikely(NewFd < 0)) { |
| 1474 | return WasiUnexpect(fromErrNo(errno)); |
| 1475 | } else { |
| 1476 | FdHolder::emplace(NewFd); |
| 1477 | } |
| 1478 | return {}; |
| 1479 | } |
| 1480 | |
| 1481 | WasiExpect<void> Poller::Timer::setTime(__wasi_timestamp_t Timeout, |
| 1482 | __wasi_timestamp_t, |
no test coverage detected