Skip to content

Commit

Permalink
add missing clockid_t on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaixin.hx committed Oct 18, 2022
1 parent 998e886 commit de1de5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc-test/semver/macos.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
CLOCK_MONOTONIC_RAW
CLOCK_MONOTONIC_RAW_APPROX
CLOCK_UPTIME_RAW
CLOCK_UPTIME_RAW_APPROX
clock_settime
memmem
task_set_info
4 changes: 4 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2694,7 +2694,11 @@ pub const ABMON_11: ::nl_item = 43;
pub const ABMON_12: ::nl_item = 44;

pub const CLOCK_REALTIME: ::clockid_t = 0;
pub const CLOCK_MONOTONIC_RAW: ::clockid_t = 4;
pub const CLOCK_MONOTONIC_RAW_APPROX: ::clockid_t = 5;
pub const CLOCK_MONOTONIC: ::clockid_t = 6;
pub const CLOCK_UPTIME_RAW: ::clockid_t = 8;
pub const CLOCK_UPTIME_RAW_APPROX: ::clockid_t = 9;
pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 12;
pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 16;

Expand Down

0 comments on commit de1de5a

Please sign in to comment.