debian/rust-vendor/rustix/src/time/mod.rs
raw| 1 | //! Time-related operations. |
| 2 | |
| 3 | mod clock; |
| 4 | #[cfg(any( |
| 5 | linux_kernel, |
| 6 | target_os = "freebsd", |
| 7 | target_os = "fuchsia", |
| 8 | target_os = "illumos", |
| 9 | target_os = "netbsd" |
| 10 | ))] |
| 11 | mod timerfd; |
| 12 | |
| 13 | // TODO: Convert WASI'S clock APIs to use handles rather than ambient clock |
| 14 | // identifiers, update `wasi-libc`, and then add support in `rustix`. |
| 15 | pub use clock::*; |
| 16 | #[cfg(any( |
| 17 | linux_kernel, |
| 18 | target_os = "freebsd", |
| 19 | target_os = "fuchsia", |
| 20 | target_os = "illumos", |
| 21 | target_os = "netbsd" |
| 22 | ))] |
| 23 | pub use timerfd::*; |