diff options
Diffstat (limited to 'src/misc/ptrace.c')
-rw-r--r-- | src/misc/ptrace.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/misc/ptrace.c b/src/misc/ptrace.c deleted file mode 100644 index 83b8022b..00000000 --- a/src/misc/ptrace.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <sys/ptrace.h> -#include <stdarg.h> -#include <unistd.h> -#include "syscall.h" - -long ptrace(int req, ...) -{ - va_list ap; - pid_t pid; - void *addr, *data, *addr2; - long ret, result; - - va_start(ap, req); - pid = va_arg(ap, pid_t); - addr = va_arg(ap, void *); - data = va_arg(ap, void *); - addr2 = va_arg(ap, void *); - va_end(ap); - - if (req-1U < 3) data = &result; - ret = syscall(SYS_ptrace, req, pid, addr, data, addr2); - - if (ret < 0 || req-1U >= 3) return ret; - return result; -} |