diff options
author | bors <bors@rust-lang.org> | 2021-10-20 22:36:32 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-10-20 22:36:32 +0000 |
commit | 7638a12303f2b0f559a2a0dbd3f1a230d9a2bae9 (patch) | |
tree | e71c99d0bee1e8b9a8549e4f32642774bffd0614 | |
parent | 698d39732c9e1efa9ae35f21d467c0a3de8207ad (diff) | |
parent | 3aafe4b6cc306846c90c47efc5e5993e1304f979 (diff) | |
download | rust-libc-7638a12303f2b0f559a2a0dbd3f1a230d9a2bae9.tar.gz |
Auto merge of #2459 - devnexen:macos_bug_sur_further_upd, r=JohnTitor
apple further Big Sur update adding few more fn.
-rw-r--r-- | libc-test/semver/apple.txt | 3 | ||||
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index 8592469ddb..2bafdaab22 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -1828,12 +1828,15 @@ pseudo_AF_RTIP pseudo_AF_XTP pthread_attr_getschedparam pthread_attr_setschedparam +pthread_cpu_number_np pthread_create_from_mach_thread pthread_getschedparam pthread_introspection_getspecific_np pthread_introspection_hook_t pthread_introspection_hook_install pthread_introspection_setspecific_np +pthread_jit_write_protect_np +pthread_jit_write_protect_supported_np pthread_setschedparam pthread_cancel pthread_condattr_getpshared diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index ce82585bfd..8f6717890a 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4873,6 +4873,9 @@ extern "C" { thread: ::pthread_t, key: ::pthread_key_t, ) -> *mut ::c_void; + pub fn pthread_jit_write_protect_np(enabled: ::c_int); + pub fn pthread_jit_write_protect_supported_np() -> ::c_int; + pub fn pthread_cpu_number_np(cpu_number_out: *mut ::size_t) -> ::c_int; pub fn thread_policy_set( thread: thread_t, |