diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-08-14 17:28:19 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-08-14 17:28:19 +0200 |
commit | 3d975fa52b82e390ecbb0252739ee3fae64266c2 (patch) | |
tree | 9f33f52b464efef21ca2fd03ff47cebfd3a84299 /include/sys/uio.h | |
parent | ecbc412d0d93c8b7b77bec6539b290c9da5401cf (diff) |
add process_vm_{read,write}v syscall wrapper from glibc
Diffstat (limited to 'include/sys/uio.h')
-rw-r--r-- | include/sys/uio.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sys/uio.h b/include/sys/uio.h index 330426fec..9e9708c0c 100644 --- a/include/sys/uio.h +++ b/include/sys/uio.h @@ -74,6 +74,25 @@ extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __wur; #endif /* Use misc. */ +#ifdef __USE_GNU +/* Read from another process' address space. */ +extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, + unsigned long int __liovcnt, + const struct iovec *__rvec, + unsigned long int __riovcnt, + unsigned long int __flags) + __THROW; + +/* Write to another process' address space. */ +extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, + unsigned long int __liovcnt, + const struct iovec *__rvec, + unsigned long int __riovcnt, + unsigned long int __flags) + __THROW; + +#endif + __END_DECLS #endif /* sys/uio.h */ |