summaryrefslogtreecommitdiff
path: root/src/unix/solarish/illumos.rs
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2021-06-12 18:49:05 +0100
committerDavid Carlier <devnexen@gmail.com>2021-06-12 18:13:59 +0100
commit68ec7f2e1708abba680bb8071a377350dbabff8b (patch)
tree06c4276d23abe62a173ca335a8b4f1278ac92f14 /src/unix/solarish/illumos.rs
parentda79cd0e32b15f7b9f900411a4e7c86ca0de5fa4 (diff)
downloadrust-libc-68ec7f2e1708abba680bb8071a377350dbabff8b.tar.gz
solaris based systems update
basis to do cpu affinity with some illumos specifics.
Diffstat (limited to 'src/unix/solarish/illumos.rs')
-rw-r--r--src/unix/solarish/illumos.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs
index 730bb690c4..c495019349 100644
--- a/src/unix/solarish/illumos.rs
+++ b/src/unix/solarish/illumos.rs
@@ -37,4 +37,12 @@ extern "C" {
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
pub fn mincore(addr: ::caddr_t, len: ::size_t, vec: *mut ::c_char) -> ::c_int;
+
+ pub fn pset_bind_lwp(
+ pset: ::psetid_t,
+ id: ::id_t,
+ pid: ::pid_t,
+ opset: *mut ::psetid_t,
+ ) -> ::c_int;
+ pub fn pset_getloadavg(pset: ::psetid_t, load: *mut ::c_double, num: ::c_int) -> ::c_int;
}