Auto merge of #1832 - qwandor-google:master, r=JohnTitor

Android: Add preadv and pwritev.

From sys/uio.h. Note that preadv64/pwritev64 are already included in
src/unix/linux_like/mod.rs.
This commit is contained in:
bors 2020-10-19 16:33:07 +00:00
commit 17b70c1f9b
1 changed files with 16 additions and 4 deletions

View File

@ -2399,20 +2399,32 @@ extern "C" {
sevlen: ::size_t,
flags: ::c_int,
) -> ::c_int;
pub fn preadv(
fd: ::c_int,
iov: *const ::iovec,
count: ::c_int,
offset: ::off_t,
) -> ::ssize_t;
pub fn pwritev(
fd: ::c_int,
iov: *const ::iovec,
count: ::c_int,
offset: ::off_t,
) -> ::ssize_t;
pub fn process_vm_readv(
pid: ::pid_t,
local_iov: *const ::iovec,
liovcnt: ::c_ulong,
local_iov_count: ::c_ulong,
remote_iov: *const ::iovec,
riovcnt: ::c_ulong,
remote_iov_count: ::c_ulong,
flags: ::c_ulong,
) -> ::ssize_t;
pub fn process_vm_writev(
pid: ::pid_t,
local_iov: *const ::iovec,
liovcnt: ::c_ulong,
local_iov_count: ::c_ulong,
remote_iov: *const ::iovec,
riovcnt: ::c_ulong,
remote_iov_count: ::c_ulong,
flags: ::c_ulong,
) -> ::ssize_t;
pub fn ptrace(request: ::c_int, ...) -> ::c_long;