diff options
Diffstat (limited to 'sysdeps/stub/ptrace.c')
-rw-r--r-- | sysdeps/stub/ptrace.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sysdeps/stub/ptrace.c b/sysdeps/stub/ptrace.c index 31fbbb1b05..d3a2d57a2f 100644 --- a/sysdeps/stub/ptrace.c +++ b/sysdeps/stub/ptrace.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 95, 96 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <errno.h> #include <sys/ptrace.h> #include <sys/types.h> @@ -32,11 +31,12 @@ Cambridge, MA 02139, USA. */ pid_t PID, void *ADDR, int DATA, void *ADDR2 after PID. */ int -DEFUN(ptrace, (request), enum __ptrace_request request DOTS) +ptrace (request) + enum __ptrace_request request; { pid_t pid; - PTR addr; - PTR addr2; + void *addr; + void *addr2; int data; va_list ap; @@ -63,7 +63,7 @@ DEFUN(ptrace, (request), enum __ptrace_request request DOTS) case PTRACE_SETFPAREGS: va_start(ap, request); pid = va_arg(ap, pid_t); - addr = va_arg(ap, PTR); + addr = va_arg(ap, void *); va_end(ap); break; @@ -72,7 +72,7 @@ DEFUN(ptrace, (request), enum __ptrace_request request DOTS) case PTRACE_POKEUSER: va_start(ap, request); pid = va_arg(ap, pid_t); - addr = va_arg(ap, PTR); + addr = va_arg(ap, void *); data = va_arg(ap, int); va_end(ap); break; @@ -83,18 +83,18 @@ DEFUN(ptrace, (request), enum __ptrace_request request DOTS) case PTRACE_WRITETEXT: va_start(ap, request); pid = va_arg(ap, pid_t); - addr = va_arg(ap, PTR); + addr = va_arg(ap, void *); data = va_arg(ap, int); - addr2 = va_arg(ap, PTR); + addr2 = va_arg(ap, void *); va_end(ap); break; default: - errno = EINVAL; + __set_errno (EINVAL); return -1; } - errno = ENOSYS; + __set_errno (ENOSYS); return -1; } |