File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2082,6 +2082,14 @@ fn test_freebsd(target: &str) {
2082
2082
true
2083
2083
}
2084
2084
2085
+ // These aliases were introduced in FreeBSD 13:
2086
+ // (note however that the constants themselves work on any version)
2087
+ "CLOCK_BOOTTIME" | "CLOCK_REALTIME_COARSE" | "CLOCK_MONOTONIC_COARSE"
2088
+ if Some ( 13 ) > freebsd_ver =>
2089
+ {
2090
+ true
2091
+ }
2092
+
2085
2093
// FIXME: These are deprecated - remove in a couple of releases.
2086
2094
// These constants were removed in FreeBSD 11 (svn r273250) but will
2087
2095
// still be accepted and ignored at runtime.
Original file line number Diff line number Diff line change @@ -149,10 +149,13 @@ CLD_EXITED
149
149
CLD_KILLED
150
150
CLD_STOPPED
151
151
CLD_TRAPPED
152
+ CLOCK_BOOTTIME
153
+ CLOCK_MONOTONIC_COARSE
152
154
CLOCK_MONOTONIC_FAST
153
155
CLOCK_MONOTONIC_PRECISE
154
156
CLOCK_PROCESS_CPUTIME_ID
155
157
CLOCK_PROF
158
+ CLOCK_REALTIME_COARSE
156
159
CLOCK_REALTIME_FAST
157
160
CLOCK_REALTIME_PRECISE
158
161
CLOCK_SECOND
Original file line number Diff line number Diff line change @@ -824,12 +824,15 @@ pub const CLOCK_VIRTUAL: ::clockid_t = 1;
824
824
pub const CLOCK_PROF : :: clockid_t = 2 ;
825
825
pub const CLOCK_MONOTONIC : :: clockid_t = 4 ;
826
826
pub const CLOCK_UPTIME : :: clockid_t = 5 ;
827
+ pub const CLOCK_BOOTTIME : :: clockid_t = CLOCK_UPTIME ;
827
828
pub const CLOCK_UPTIME_PRECISE : :: clockid_t = 7 ;
828
829
pub const CLOCK_UPTIME_FAST : :: clockid_t = 8 ;
829
830
pub const CLOCK_REALTIME_PRECISE : :: clockid_t = 9 ;
830
831
pub const CLOCK_REALTIME_FAST : :: clockid_t = 10 ;
832
+ pub const CLOCK_REALTIME_COARSE : :: clockid_t = CLOCK_REALTIME_FAST ;
831
833
pub const CLOCK_MONOTONIC_PRECISE : :: clockid_t = 11 ;
832
834
pub const CLOCK_MONOTONIC_FAST : :: clockid_t = 12 ;
835
+ pub const CLOCK_MONOTONIC_COARSE : :: clockid_t = CLOCK_MONOTONIC_FAST ;
833
836
pub const CLOCK_SECOND : :: clockid_t = 13 ;
834
837
pub const CLOCK_THREAD_CPUTIME_ID : :: clockid_t = 14 ;
835
838
pub const CLOCK_PROCESS_CPUTIME_ID : :: clockid_t = 15 ;
You can’t perform that action at this time.
0 commit comments