diff options
author | bors <bors@rust-lang.org> | 2021-09-27 05:18:06 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-09-27 05:18:06 +0000 |
commit | 39d69eb3def45c89285f19f316d30fded01e4c21 (patch) | |
tree | ef4b442f44dc311e6008a876449b2c48548e02b5 | |
parent | a128dcf57732c53724eba34b8963ead8a0c12aab (diff) | |
parent | e718d4d9a7d0fa8256ec0505b3f064d899bcf45c (diff) | |
download | rust-libc-39d69eb3def45c89285f19f316d30fded01e4c21.tar.gz |
Auto merge of #2424 - devnexen:solarish_th_name, r=JohnTitor
pthread_getname_np/pthread_setname_np for solarish
-rw-r--r-- | src/unix/solarish/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 8ee388ce6a..67147ea4a3 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -2415,6 +2415,8 @@ extern "C" { lock: *mut pthread_mutex_t, abstime: *const ::timespec, ) -> ::c_int; + pub fn pthread_getname_np(tid: ::pthread_t, name: *mut ::c_char, len: ::size_t) -> ::c_int; + pub fn pthread_setname_np(tid: ::pthread_t, name: *const ::c_char) -> ::c_int; pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t, options: ::c_int) -> ::c_int; |