Skip to content

Commit b367bc4

Browse files
committed
Auto merge of #2221 - devnexen:fbsd_pthread_threadid_np, r=JohnTitor
freebsd adding pthread_getthreadid_np
2 parents c02c8f8 + 82e03c5 commit b367bc4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ pthread_condattr_getclock
15461546
pthread_condattr_getpshared
15471547
pthread_condattr_setclock
15481548
pthread_condattr_setpshared
1549+
pthread_getthreadid_np
15491550
pthread_kill
15501551
pthread_main_np
15511552
pthread_mutex_timedlock

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,8 @@ extern "C" {
15611561
newfd: ::c_int,
15621562
) -> ::c_int;
15631563

1564+
pub fn pthread_getthreadid_np() -> ::c_int;
1565+
15641566
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "statfs@FBSD_1.0")]
15651567
pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int;
15661568
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "fstatfs@FBSD_1.0")]

0 commit comments

Comments
 (0)