Skip to content

Commit 1ba11bb

Browse files
committed
Auto merge of #2378 - devnexen:pthread_getcpuclockid, r=JohnTitor
linux, android, freebsd-like adding pthread_getcpuclockid
2 parents 16df9e0 + 51878b3 commit 1ba11bb

File tree

7 files changed

+10
-0
lines changed

7 files changed

+10
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,6 +2984,7 @@ pthread_create
29842984
pthread_detach
29852985
pthread_exit
29862986
pthread_getattr_np
2987+
pthread_getcpuclockid
29872988
pthread_getschedparam
29882989
pthread_getspecific
29892990
pthread_join

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ pthread_condattr_getclock
13541354
pthread_condattr_getpshared
13551355
pthread_condattr_setclock
13561356
pthread_condattr_setpshared
1357+
pthread_getcpuclockid
13571358
pthread_kill
13581359
pthread_main_np
13591360
pthread_mutex_timedlock

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,6 +1639,7 @@ pthread_condattr_getpshared
16391639
pthread_condattr_setclock
16401640
pthread_condattr_setpshared
16411641
pthread_getaffinity_np
1642+
pthread_getcpuclockid
16421643
pthread_getthreadid_np
16431644
pthread_kill
16441645
pthread_main_np

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,6 +2921,7 @@ pthread_condattr_setclock
29212921
pthread_condattr_setpshared
29222922
pthread_getaffinity_np
29232923
pthread_getattr_np
2924+
pthread_getcpuclockid
29242925
pthread_getschedparam
29252926
pthread_kill
29262927
pthread_mutex_timedlock

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,8 @@ extern "C" {
14301430
pub fn clock_settime(clk_id: ::clockid_t, tp: *const ::timespec) -> ::c_int;
14311431
pub fn clock_getcpuclockid(pid: ::pid_t, clk_id: *mut ::clockid_t) -> ::c_int;
14321432

1433+
pub fn pthread_getcpuclockid(thread: ::pthread_t, clk_id: *mut ::clockid_t) -> ::c_int;
1434+
14331435
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
14341436
pub fn duplocale(base: ::locale_t) -> ::locale_t;
14351437
pub fn endutxent();

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,8 @@ extern "C" {
29172917
pub fn arc4random_buf(__buf: *mut ::c_void, __n: ::size_t);
29182918

29192919
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;
2920+
2921+
pub fn pthread_getcpuclockid(thread: ::pthread_t, clk_id: *mut ::clockid_t) -> ::c_int;
29202922
}
29212923

29222924
cfg_if! {

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3840,6 +3840,8 @@ extern "C" {
38403840
) -> ::c_int;
38413841

38423842
pub fn gethostid() -> ::c_long;
3843+
3844+
pub fn pthread_getcpuclockid(thread: ::pthread_t, clk_id: *mut ::clockid_t) -> ::c_int;
38433845
}
38443846

38453847
cfg_if! {

0 commit comments

Comments
 (0)