Skip to content

Commit aa8cfff

Browse files
committed
Auto merge of rust-lang#3079 - madsmtm:pthread-main-apple, r=JohnTitor
Add `pthread_main_np` on Apple targets Available since macOS 10.4 and iOS 2.0 ([source](https://github.com/apple-oss-distributions/libpthread/blob/67e155c94093be9a204b69637d198eceff2c7c46/include/pthread/pthread.h#L537-L539)).
2 parents 0c1079d + 07e417b commit aa8cfff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,7 @@ pthread_mutexattr_setpshared
21002100
pthread_rwlockattr_getpshared
21012101
pthread_rwlockattr_setpshared
21022102
pthread_setname_np
2103+
pthread_main_np
21032104
ptrace
21042105
pututxline
21052106
pwritev

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5197,6 +5197,7 @@ extern "C" {
51975197
attr: *const pthread_condattr_t,
51985198
pshared: *mut ::c_int,
51995199
) -> ::c_int;
5200+
pub fn pthread_main_np() -> ::c_int;
52005201
pub fn pthread_mutexattr_setpshared(
52015202
attr: *mut pthread_mutexattr_t,
52025203
pshared: ::c_int,

0 commit comments

Comments
 (0)