diff options
author | Luqman Aden <luqman@oxide.computer> | 2021-08-31 13:35:07 -0700 |
---|---|---|
committer | Luqman Aden <luqman@oxide.computer> | 2021-08-31 13:49:49 -0700 |
commit | 621a95373d18bc81529021df7007222205d89cda (patch) | |
tree | 548ed44c5bd29c37051a9208ba0f8ceaf8d02db6 /src/unix/solarish/illumos.rs | |
parent | 03b03127fd6fe67db83a620b474ee848d10d9fe1 (diff) | |
download | rust-libc-621a95373d18bc81529021df7007222205d89cda.tar.gz |
Add preadv/pwritev for illumos.
Diffstat (limited to 'src/unix/solarish/illumos.rs')
-rw-r--r-- | src/unix/solarish/illumos.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs index c495019349..5a8b083668 100644 --- a/src/unix/solarish/illumos.rs +++ b/src/unix/solarish/illumos.rs @@ -45,4 +45,8 @@ extern "C" { opset: *mut ::psetid_t, ) -> ::c_int; pub fn pset_getloadavg(pset: ::psetid_t, load: *mut ::c_double, num: ::c_int) -> ::c_int; + + pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t; + pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) + -> ::ssize_t; } |