diff options
Diffstat (limited to 'lib/mlibc/sysdeps/ironclad/generic/ptrace.cpp')
-rw-r--r-- | lib/mlibc/sysdeps/ironclad/generic/ptrace.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mlibc/sysdeps/ironclad/generic/ptrace.cpp b/lib/mlibc/sysdeps/ironclad/generic/ptrace.cpp new file mode 100644 index 0000000..58a8dd2 --- /dev/null +++ b/lib/mlibc/sysdeps/ironclad/generic/ptrace.cpp @@ -0,0 +1,9 @@ +#include <sys/syscall.h> +#include <errno.h> +#include <sys/ptrace.h> + +int ptrace(int request, pid_t pid, void *addr, void *data) { + int ret; + SYSCALL4(SYSCALL_PTRACE, request, pid, addr, data); + return ret; +} |