/* $OpenBSD: ptrace.c,v 1.3 2003/06/11 21:03:10 deraadt Exp $ */ /* David Leonard , 1999. Public domain. */ #include #include #include int _ptrace(int, pid_t, caddr_t, int); int 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)); }