We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab3c229 + 8ced4c0 commit 7476df0Copy full SHA for 7476df0
src/unix/bsd/apple/mod.rs
@@ -35,6 +35,8 @@ pub type shmatt_t = ::c_ushort;
35
pub type sae_associd_t = u32;
36
pub type sae_connid_t = u32;
37
38
+pub type mach_port_t = ::c_uint;
39
+
40
deprecated_mach! {
41
pub type vm_prot_t = ::c_int;
42
pub type vm_size_t = ::uintptr_t;
@@ -3395,6 +3397,7 @@ extern "C" {
3395
3397
name: *mut ::c_char,
3396
3398
len: ::size_t,
3399
) -> ::c_int;
3400
+ pub fn pthread_from_mach_thread_np(port: ::mach_port_t) -> ::pthread_t;
3401
pub fn pthread_get_stackaddr_np(thread: ::pthread_t) -> *mut ::c_void;
3402
pub fn pthread_get_stacksize_np(thread: ::pthread_t) -> ::size_t;
3403
pub fn pthread_condattr_setpshared(
0 commit comments