summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 4312ee535..d9ae26375 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -200,6 +200,11 @@ _syscall1(int, stime, time_t *, t);
#endif
//#define __NR_ptrace 26
+#include <sys/ptrace.h>
+#define __NR___ptrace __NR_ptrace
+_syscall4(long, __ptrace, enum __ptrace_request, request, pid_t, pid,
+ void*, addr, void*, data);
+
//#define __NR_alarm 27
#ifdef L_alarm