add process_vm_readv and process_vm_writev syscall wrappers
based on a patch submitted by Kristian L. <email@thexception.net>
This commit is contained in:
parent
213db3e3fa
commit
9cf9c39e48
2 changed files with 22 additions and 0 deletions
13
src/linux/process_vm.c
Normal file
13
src/linux/process_vm.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <sys/uio.h>
|
||||
#include "syscall.h"
|
||||
|
||||
ssize_t process_vm_writev(pid_t pid, const struct iovec *lvec, unsigned long liovcnt, const struct iovec *rvec, unsigned long riovcnt, unsigned long flags)
|
||||
{
|
||||
return syscall(SYS_process_vm_writev, pid, lvec, liovcnt, rvec, riovcnt, flags);
|
||||
}
|
||||
|
||||
ssize_t process_vm_readv(pid_t pid, const struct iovec *lvec, unsigned long liovcnt, const struct iovec *rvec, unsigned long riovcnt, unsigned long flags)
|
||||
{
|
||||
return syscall(SYS_process_vm_readv, pid, lvec, liovcnt, rvec, riovcnt, flags);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue