3 --- src/pcat/pcat.c.orig 2001-09-25 10:22:20.000000000 -0700
9 + * Based on the OpenBSD code above.
11 +#if defined(NETBSD1) || defined(NETBSD2)
13 +#include <sys/param.h>
14 +#include <sys/user.h>
15 +#include <sys/sysctl.h>
18 +#define HAVE_PTRACE_MEM
19 +#define PTRACE_ATTACH PT_ATTACH
20 +#define PTRACE_DETACH PT_DETACH
21 +#define PTRACE_PEEKDATA PT_READ_D
22 +#define HAVE_BROKEN_CTOB
23 +#define PTRACE_ARG3_T caddr_t
27 * SunOS 4.x has no /proc, and ptrace() peeking the u area won't give us the
28 * process memory segment sizes. Instead we must grope process information
29 * from kernel virtual memory. This requires super-user privilege.