-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FreeBSD has recently added support for Linux's timerfd API. Enable rustix's timerfd API on FreeBSD as well.
- Loading branch information
1 parent
07a80aa
commit c638fea
Showing
5 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
//! Time-related operations. | ||
mod clock; | ||
#[cfg(any(linux_kernel, target_os = "fuchsia"))] | ||
#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] | ||
mod timerfd; | ||
|
||
// TODO: Convert WASI'S clock APIs to use handles rather than ambient clock | ||
// identifiers, update `wasi-libc`, and then add support in `rustix`. | ||
pub use clock::*; | ||
#[cfg(any(linux_kernel, target_os = "fuchsia"))] | ||
#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] | ||
pub use timerfd::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters