Skip to content

Commit 2686cc5

Browse files
committed
Support pthread_{set,get}name_np for linux with glibc
1 parent f397625 commit 2686cc5

File tree

1 file changed

+5
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+5
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,11 @@ extern {
10241024
buf: *mut ::c_char,
10251025
buflen: ::size_t,
10261026
result: *mut *mut ::group) -> ::c_int;
1027+
pub fn pthread_getname_np(thread: ::pthread_t,
1028+
name: *mut ::c_char,
1029+
len: ::size_t) -> ::c_int;
1030+
pub fn pthread_setname_np(thread: ::pthread_t,
1031+
name: *const ::c_char) -> ::c_int;
10271032
}
10281033

10291034
cfg_if! {

0 commit comments

Comments
 (0)