preadv2/pwritev2: Only define these functions with glibc
They're not implemented by musl or bionic.
This commit is contained in:
parent
a18aee2068
commit
01f62b6149
|
@ -1420,6 +1420,20 @@ extern "C" {
|
|||
dirfd: ::c_int,
|
||||
path: *const ::c_char,
|
||||
) -> ::c_int;
|
||||
pub fn preadv2(
|
||||
fd: ::c_int,
|
||||
iov: *const ::iovec,
|
||||
iovcnt: ::c_int,
|
||||
offset: ::off_t,
|
||||
flags: ::c_int,
|
||||
) -> ::ssize_t;
|
||||
pub fn pwritev2(
|
||||
fd: ::c_int,
|
||||
iov: *const ::iovec,
|
||||
iovcnt: ::c_int,
|
||||
offset: ::off_t,
|
||||
flags: ::c_int,
|
||||
) -> ::ssize_t;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
|
|
@ -3033,26 +3033,12 @@ extern "C" {
|
|||
iovcnt: ::c_int,
|
||||
offset: ::off_t,
|
||||
) -> ::ssize_t;
|
||||
pub fn pwritev2(
|
||||
fd: ::c_int,
|
||||
iov: *const ::iovec,
|
||||
iovcnt: ::c_int,
|
||||
offset: ::off_t,
|
||||
flags: ::c_int,
|
||||
) -> ::ssize_t;
|
||||
pub fn preadv(
|
||||
fd: ::c_int,
|
||||
iov: *const ::iovec,
|
||||
iovcnt: ::c_int,
|
||||
offset: ::off_t,
|
||||
) -> ::ssize_t;
|
||||
pub fn preadv2(
|
||||
fd: ::c_int,
|
||||
iov: *const ::iovec,
|
||||
iovcnt: ::c_int,
|
||||
offset: ::off_t,
|
||||
flags: ::c_int,
|
||||
) -> ::ssize_t;
|
||||
pub fn quotactl(
|
||||
cmd: ::c_int,
|
||||
special: *const ::c_char,
|
||||
|
|
Loading…
Reference in New Issue