We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc8237 commit f024fe7Copy full SHA for f024fe7
src/unix/bsd/mod.rs
@@ -491,6 +491,8 @@ extern {
491
oldset: *mut sigset_t) -> ::c_int;
492
pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t;
493
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;
494
+ #[cfg_attr(all(target_os = "macos", target_arch = "x86"),
495
+ link_name = "pthread_cancel$UNIX2003")]
496
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
497
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
498
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
0 commit comments