Skip to content

Commit 59544d9

Browse files
authored
Merge pull request #1887 from psumbera/master
add pthread_getattr_np() and pthread_attr_getstack() for Solaris
2 parents 2a0b8fe + 9f6a7ce commit 59544d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,6 +2266,15 @@ extern "C" {
22662266
f: extern "C" fn(*mut ::c_void) -> *mut ::c_void,
22672267
value: *mut ::c_void,
22682268
) -> ::c_int;
2269+
pub fn pthread_getattr_np(
2270+
thread: ::pthread_t,
2271+
attr: *mut ::pthread_attr_t,
2272+
) -> ::c_int;
2273+
pub fn pthread_attr_getstack(
2274+
attr: *const ::pthread_attr_t,
2275+
stackaddr: *mut *mut ::c_void,
2276+
stacksize: *mut ::size_t,
2277+
) -> ::c_int;
22692278
pub fn pthread_condattr_getclock(
22702279
attr: *const pthread_condattr_t,
22712280
clock_id: *mut clockid_t,

0 commit comments

Comments
 (0)