Skip to content

Commit 7964597

Browse files
committed
Auto merge of #2382 - luqmana:preadwritev-illumos, r=JohnTitor
Add preadv/pwritev for illumos. Illumos man pages: [`preadv`](https://illumos.org/man/2/preadv) / [`pwritev`](https://illumos.org/man/2/pwritev). These are Illumos specific because I don't think they exist in Solaris.
2 parents eeab21e + 621a953 commit 7964597

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/solarish/illumos.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ extern "C" {
4545
opset: *mut ::psetid_t,
4646
) -> ::c_int;
4747
pub fn pset_getloadavg(pset: ::psetid_t, load: *mut ::c_double, num: ::c_int) -> ::c_int;
48+
49+
pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t;
50+
pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t)
51+
-> ::ssize_t;
4852
}

0 commit comments

Comments
 (0)