Skip to content

Commit

Permalink
Auto merge of rust-lang#3412 - devnexen:fbsd_pthread_np_upd, r=JohnTitor
Browse files Browse the repository at this point in the history
adding more recent pthread_get/setname_np calls to freebsd/dragonflybsd
  • Loading branch information
bors committed Oct 29, 2023
2 parents 912fca6 + 3daf7a5 commit 375e641
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,7 @@ pthread_condattr_getpshared
pthread_condattr_setclock
pthread_condattr_setpshared
pthread_get_name_np
pthread_getname_np
pthread_getcpuclockid
pthread_kill
pthread_main_np
Expand All @@ -1464,6 +1465,7 @@ pthread_mutexattr_setpshared
pthread_rwlockattr_getpshared
pthread_rwlockattr_setpshared
pthread_set_name_np
pthread_setname_np
pthread_spin_destroy
pthread_spin_init
pthread_spin_lock
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2029,6 +2029,7 @@ pthread_condattr_getpshared
pthread_condattr_setclock
pthread_condattr_setpshared
pthread_get_name_np
pthread_getname_np
pthread_getaffinity_np
pthread_getcpuclockid
pthread_getthreadid_np
Expand All @@ -2044,6 +2045,7 @@ pthread_rwlockattr_getpshared
pthread_rwlockattr_setpshared
pthread_setaffinity_np
pthread_set_name_np
pthread_setname_np
pthread_getschedparam
pthread_setschedparam
pthread_spin_destroy
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,12 @@ extern "C" {
pub fn pthread_barrier_wait(barrier: *mut pthread_barrier_t) -> ::c_int;
pub fn pthread_get_name_np(tid: ::pthread_t, name: *mut ::c_char, len: ::size_t);
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
pub fn pthread_getname_np(
thread: ::pthread_t,
buffer: *mut ::c_char,
length: ::size_t,
) -> ::c_int;
pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int;
pub fn pthread_setschedparam(
native: ::pthread_t,
policy: ::c_int,
Expand Down

0 comments on commit 375e641

Please sign in to comment.