Skip to content

Commit 375e641

Browse files
committed
Auto merge of #3412 - devnexen:fbsd_pthread_np_upd, r=JohnTitor
adding more recent pthread_get/setname_np calls to freebsd/dragonflybsd
2 parents 912fca6 + 3daf7a5 commit 375e641

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ pthread_condattr_getpshared
14551455
pthread_condattr_setclock
14561456
pthread_condattr_setpshared
14571457
pthread_get_name_np
1458+
pthread_getname_np
14581459
pthread_getcpuclockid
14591460
pthread_kill
14601461
pthread_main_np
@@ -1464,6 +1465,7 @@ pthread_mutexattr_setpshared
14641465
pthread_rwlockattr_getpshared
14651466
pthread_rwlockattr_setpshared
14661467
pthread_set_name_np
1468+
pthread_setname_np
14671469
pthread_spin_destroy
14681470
pthread_spin_init
14691471
pthread_spin_lock

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,6 +2029,7 @@ pthread_condattr_getpshared
20292029
pthread_condattr_setclock
20302030
pthread_condattr_setpshared
20312031
pthread_get_name_np
2032+
pthread_getname_np
20322033
pthread_getaffinity_np
20332034
pthread_getcpuclockid
20342035
pthread_getthreadid_np
@@ -2044,6 +2045,7 @@ pthread_rwlockattr_getpshared
20442045
pthread_rwlockattr_setpshared
20452046
pthread_setaffinity_np
20462047
pthread_set_name_np
2048+
pthread_setname_np
20472049
pthread_getschedparam
20482050
pthread_setschedparam
20492051
pthread_spin_destroy

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,12 @@ extern "C" {
16461646
pub fn pthread_barrier_wait(barrier: *mut pthread_barrier_t) -> ::c_int;
16471647
pub fn pthread_get_name_np(tid: ::pthread_t, name: *mut ::c_char, len: ::size_t);
16481648
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
1649+
pub fn pthread_getname_np(
1650+
thread: ::pthread_t,
1651+
buffer: *mut ::c_char,
1652+
length: ::size_t,
1653+
) -> ::c_int;
1654+
pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int;
16491655
pub fn pthread_setschedparam(
16501656
native: ::pthread_t,
16511657
policy: ::c_int,

0 commit comments

Comments
 (0)