/* $OpenBSD: ptrace.c,v 1.2 2002/02/16 21:27:24 millert Exp $ */ /* David Leonard , 1999. Public domain. */ #include #include #include int _ptrace(int, pid_t, caddr_t, int); int ptrace(request, pid, addr, data) 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)); }