From e718d4d9a7d0fa8256ec0505b3f064d899bcf45c Mon Sep 17 00:00:00 2001 From: DC Date: Sun, 26 Sep 2021 12:20:18 +0100 Subject: [PATCH] pthread_getname_np/pthread_setname_np for solarish --- src/unix/solarish/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 8ee388ce6ad6e..67147ea4a3e35 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;