Skip to content

Commit 7095864

Browse files
sunshowerstgross35
authored andcommitted
[illumos] add pthread stack functions
Cherry-picks 80d43bf.
1 parent c27c43f commit 7095864

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

libc-test/semver/illumos.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pthread_attr_get_np
2+
pthread_attr_getstackaddr
3+
pthread_attr_setstack

src/unix/solarish/illumos.rs

+15
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ extern "C" {
8181
) -> ::c_int;
8282
pub fn pset_getloadavg(pset: ::psetid_t, load: *mut ::c_double, num: ::c_int) -> ::c_int;
8383

84+
pub fn pthread_attr_get_np(thread: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int;
85+
pub fn pthread_attr_getstackaddr(
86+
attr: *const ::pthread_attr_t,
87+
stackaddr: *mut *mut ::c_void,
88+
) -> ::c_int;
89+
pub fn pthread_attr_setstack(
90+
attr: *mut ::pthread_attr_t,
91+
stackaddr: *mut ::c_void,
92+
stacksize: ::size_t,
93+
) -> ::c_int;
94+
pub fn pthread_attr_setstackaddr(
95+
attr: *mut ::pthread_attr_t,
96+
stackaddr: *mut ::c_void,
97+
) -> ::c_int;
98+
8499
pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t;
85100
pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t)
86101
-> ::ssize_t;

0 commit comments

Comments
 (0)