Skip to content

Commit 621a953

Browse files
committed
Add preadv/pwritev for illumos.
1 parent 03b0312 commit 621a953

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)