summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVal Packett <val@packett.cool>2023-02-19 18:49:58 -0300
committerVal Packett <val@packett.cool>2023-02-19 18:55:34 -0300
commit69659517e866debfe796b6f42043e042b4ccbd48 (patch)
treea368b2a4e00312fab34ad4111fc431f4ace005ed /src
parentcb1eabefb8418e864c3d67786546560f6c139dce (diff)
downloadrust-libc-69659517e866debfe796b6f42043e042b4ccbd48.tar.gz
FreeBSD: add Linux-compatible clock aliases
They were added in https://reviews.freebsd.org/D30988 which landed for 13, but as they're just aliases, they will work on any version.
Diffstat (limited to 'src')
-rw-r--r--src/unix/bsd/freebsdlike/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs
index 9aefb36e4e..6a0f383bc0 100644
--- a/src/unix/bsd/freebsdlike/mod.rs
+++ b/src/unix/bsd/freebsdlike/mod.rs
@@ -824,12 +824,15 @@ pub const CLOCK_VIRTUAL: ::clockid_t = 1;
pub const CLOCK_PROF: ::clockid_t = 2;
pub const CLOCK_MONOTONIC: ::clockid_t = 4;
pub const CLOCK_UPTIME: ::clockid_t = 5;
+pub const CLOCK_BOOTTIME: ::clockid_t = CLOCK_UPTIME;
pub const CLOCK_UPTIME_PRECISE: ::clockid_t = 7;
pub const CLOCK_UPTIME_FAST: ::clockid_t = 8;
pub const CLOCK_REALTIME_PRECISE: ::clockid_t = 9;
pub const CLOCK_REALTIME_FAST: ::clockid_t = 10;
+pub const CLOCK_REALTIME_COARSE: ::clockid_t = CLOCK_REALTIME_FAST;
pub const CLOCK_MONOTONIC_PRECISE: ::clockid_t = 11;
pub const CLOCK_MONOTONIC_FAST: ::clockid_t = 12;
+pub const CLOCK_MONOTONIC_COARSE: ::clockid_t = CLOCK_MONOTONIC_FAST;
pub const CLOCK_SECOND: ::clockid_t = 13;
pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 14;
pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 15;