Skip to content

Commit de1de5a

Browse files
author
yuhaixin.hx
committed
add missing clockid_t on macOS
1 parent 998e886 commit de1de5a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/macos.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
CLOCK_MONOTONIC_RAW
2+
CLOCK_MONOTONIC_RAW_APPROX
3+
CLOCK_UPTIME_RAW
4+
CLOCK_UPTIME_RAW_APPROX
15
clock_settime
26
memmem
37
task_set_info

src/unix/bsd/apple/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,7 +2694,11 @@ pub const ABMON_11: ::nl_item = 43;
26942694
pub const ABMON_12: ::nl_item = 44;
26952695

26962696
pub const CLOCK_REALTIME: ::clockid_t = 0;
2697+
pub const CLOCK_MONOTONIC_RAW: ::clockid_t = 4;
2698+
pub const CLOCK_MONOTONIC_RAW_APPROX: ::clockid_t = 5;
26972699
pub const CLOCK_MONOTONIC: ::clockid_t = 6;
2700+
pub const CLOCK_UPTIME_RAW: ::clockid_t = 8;
2701+
pub const CLOCK_UPTIME_RAW_APPROX: ::clockid_t = 9;
26982702
pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 12;
26992703
pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 16;
27002704

0 commit comments

Comments
 (0)