Skip to content

Commit 7638a12

Browse files
committed
Auto merge of #2459 - devnexen:macos_bug_sur_further_upd, r=JohnTitor
apple further Big Sur update adding few more fn.
2 parents 698d397 + 3aafe4b commit 7638a12

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,12 +1828,15 @@ pseudo_AF_RTIP
18281828
pseudo_AF_XTP
18291829
pthread_attr_getschedparam
18301830
pthread_attr_setschedparam
1831+
pthread_cpu_number_np
18311832
pthread_create_from_mach_thread
18321833
pthread_getschedparam
18331834
pthread_introspection_getspecific_np
18341835
pthread_introspection_hook_t
18351836
pthread_introspection_hook_install
18361837
pthread_introspection_setspecific_np
1838+
pthread_jit_write_protect_np
1839+
pthread_jit_write_protect_supported_np
18371840
pthread_setschedparam
18381841
pthread_cancel
18391842
pthread_condattr_getpshared

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4873,6 +4873,9 @@ extern "C" {
48734873
thread: ::pthread_t,
48744874
key: ::pthread_key_t,
48754875
) -> *mut ::c_void;
4876+
pub fn pthread_jit_write_protect_np(enabled: ::c_int);
4877+
pub fn pthread_jit_write_protect_supported_np() -> ::c_int;
4878+
pub fn pthread_cpu_number_np(cpu_number_out: *mut ::size_t) -> ::c_int;
48764879

48774880
pub fn thread_policy_set(
48784881
thread: thread_t,

0 commit comments

Comments
 (0)