Skip to content

Commit 39d69eb

Browse files
committed
Auto merge of #2424 - devnexen:solarish_th_name, r=JohnTitor
pthread_getname_np/pthread_setname_np for solarish
2 parents a128dcf + e718d4d commit 39d69eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,6 +2415,8 @@ extern "C" {
24152415
lock: *mut pthread_mutex_t,
24162416
abstime: *const ::timespec,
24172417
) -> ::c_int;
2418+
pub fn pthread_getname_np(tid: ::pthread_t, name: *mut ::c_char, len: ::size_t) -> ::c_int;
2419+
pub fn pthread_setname_np(tid: ::pthread_t, name: *const ::c_char) -> ::c_int;
24182420
pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t, options: ::c_int)
24192421
-> ::c_int;
24202422

0 commit comments

Comments
 (0)