summaryrefslogtreecommitdiff
path: root/lib/libc/sys/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/ptrace.c')
-rw-r--r--lib/libc/sys/ptrace.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/sys/ptrace.c b/lib/libc/sys/ptrace.c
index 62d4a941adb..ec0cfda6356 100644
--- a/lib/libc/sys/ptrace.c
+++ b/lib/libc/sys/ptrace.c
@@ -1,17 +1,16 @@
-/* $OpenBSD: ptrace.c,v 1.4 2005/12/21 01:40:23 millert Exp $ */
+/* $OpenBSD: ptrace.c,v 1.5 2016/03/30 07:55:36 guenther Exp $ */
/* David Leonard <d@openbsd.org>, 1999. Public domain. */
#include <sys/types.h>
#include <sys/ptrace.h>
#include <errno.h>
-int _ptrace(int, pid_t, caddr_t, int);
-
int
-ptrace(int request, pid_t pid, caddr_t addr, int data)
+WRAP(ptrace)(int request, pid_t pid, caddr_t addr, int data)
{
/* ptrace(2) is documented to clear errno on success: */
errno = 0;
- return (_ptrace(request, pid, addr, data));
+ return (ptrace(request, pid, addr, data));
}
+DEF_WRAP(ptrace);