summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/clockid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/clockid.rs')
-rw-r--r--vendor/rustix/src/clockid.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/vendor/rustix/src/clockid.rs b/vendor/rustix/src/clockid.rs
index 84ae650a5..abeeb7095 100644
--- a/vendor/rustix/src/clockid.rs
+++ b/vendor/rustix/src/clockid.rs
@@ -52,6 +52,8 @@ pub enum ClockId {
/// has to fail with `INVAL` due to an unsupported clock. See
/// [`DynamicClockId`] for a greater set of clocks, with the caveat that not
/// all of them are always supported.
+///
+/// [`clock_gettime`]: crate::time::clock_gettime
#[cfg(apple)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[repr(u32)]
@@ -96,10 +98,15 @@ pub enum DynamicClockId<'a> {
Tai,
/// `CLOCK_BOOTTIME`, available on Linux >= 2.6.39
- #[cfg(any(linux_kernel, target_os = "openbsd"))]
+ #[cfg(any(
+ freebsdlike,
+ linux_kernel,
+ target_os = "fuchsia",
+ target_os = "openbsd"
+ ))]
Boottime,
/// `CLOCK_BOOTTIME_ALARM`, available on Linux >= 2.6.39
- #[cfg(linux_kernel)]
+ #[cfg(any(linux_kernel, target_os = "fuchsia"))]
BoottimeAlarm,
}