diff options
author | bors <bors@rust-lang.org> | 2022-04-12 19:41:42 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-04-12 19:41:42 +0000 |
commit | 284335c960f4610cafda8c5691ce87e098c4eb74 (patch) | |
tree | c910b7c9262cf47594c36860244e6726a5f34a27 | |
parent | 95aae38dce109eebfa1219d9487d4608fdc88bfc (diff) | |
parent | 77d5ade713d83e4e9ef632a0567c80d5046ab651 (diff) | |
download | rust-libc-284335c960f4610cafda8c5691ce87e098c4eb74.tar.gz |
Auto merge of #2752 - ian-h-chamberlain:horizon/pthread_condattr, r=Amanieu
Add pthread_condattr_{set,get}clock on Horizon OS
These are supported by this `pthread-3ds` PR: https://github.com/Meziu/pthread-3ds/pull/16 and are required to compile, notably, `parking_lot_core` for the `armv6k-nintendo-3ds` target.
cc: `@Meziu` `@AzureMarker`
-rw-r--r-- | src/unix/newlib/horizon/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/newlib/horizon/mod.rs b/src/unix/newlib/horizon/mod.rs index 150b6d0580..bcb93ad9df 100644 --- a/src/unix/newlib/horizon/mod.rs +++ b/src/unix/newlib/horizon/mod.rs @@ -250,6 +250,16 @@ extern "C" { param: *const ::sched_param, ) -> ::c_int; + pub fn pthread_condattr_getclock( + attr: *const ::pthread_condattr_t, + clock_id: *mut ::clockid_t, + ) -> ::c_int; + + pub fn pthread_condattr_setclock( + attr: *mut ::pthread_condattr_t, + clock_id: ::clockid_t, + ) -> ::c_int; + pub fn pthread_getprocessorid_np() -> ::c_int; pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; |