From c9496fe712f1e40511b2b209d4d31f4b3c15fcfe Mon Sep 17 00:00:00 2001 From: Julia Evans Date: Wed, 11 May 2016 08:44:27 -0400 Subject: [PATCH] Add process_vm_readv and process_vm_writev system calls --- src/unix/notbsd/linux/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 1c0d5e46..b8d6d0b1 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -613,6 +613,18 @@ extern { new_limit: *const ::rlimit64, old_limit: *mut ::rlimit64) -> ::c_int; pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int; + pub fn process_vm_readv(pid: ::pid_t, + local_iov: *const ::iovec, + liovcnt: ::c_ulong, + remote_iov: *const ::iovec, + riovcnt: ::c_ulong, + flags: ::c_ulong) -> isize; + pub fn process_vm_writev(pid: ::pid_t, + local_iov: *const ::iovec, + liovcnt: ::c_ulong, + remote_iov: *const ::iovec, + riovcnt: ::c_ulong, + flags: ::c_ulong) -> isize; } cfg_if! {