Skip to content

Commit 61ab892

Browse files
committed
[illumos] add pthread stack functions
1 parent 0e28c86 commit 61ab892

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/unix/solarish/illumos.rs

Lines changed: 15 additions & 0 deletions
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)