From 325abdb33a3bee5a93b9d8edcfe596ff15e8f9a8 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 25 Sep 2023 20:28:41 +0000 Subject: [PATCH] haiku adding pthread GNU part --- src/unix/haiku/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index d8ecf4985d0d1..8bfb78b786753 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -2064,6 +2064,14 @@ extern "C" { search: *const ::c_void, searchLength: ::size_t, ) -> *mut ::c_void; + + pub fn pthread_getattr_np(thread: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int; + 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; } cfg_if! {