summaryrefslogtreecommitdiff
path: root/security/tct/patches/patch-am
blob: 304ca734977e9875ca3adc366dd512e01545c209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-am,v 1.1.1.1 2002/01/03 10:58:57 agc Exp $

--- src/pcat/pcat.c	2002/01/03 09:55:26	1.1
+++ src/pcat/pcat.c	2002/01/03 09:56:38
@@ -177,6 +177,24 @@
 #endif
 
  /*
+  * Based on the OpenBSD code above.
+  */
+#if defined(NETBSD1)
+#define SUPPORTED
+#include <sys/param.h>
+#include <sys/user.h>
+#include <sys/sysctl.h>
+#include <kvm.h>
+#include <stddef.h>
+#define HAVE_PTRACE_MEM
+#define PTRACE_ATTACH	PT_ATTACH
+#define PTRACE_DETACH	PT_DETACH
+#define PTRACE_PEEKDATA	PT_READ_D
+#define HAVE_BROKEN_CTOB
+#define PTRACE_ARG3_T	caddr_t
+#endif
+
+ /*
   * SunOS 4.x has no /proc, and ptrace() peeking the u area won't give us the
   * process memory segment sizes. Instead we must grope process information
   * from kernel virtual memory. This requires super-user privilege.