summaryrefslogtreecommitdiff
path: root/devel/libgtop/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libgtop/patches/patch-al')
-rw-r--r--devel/libgtop/patches/patch-al27
1 files changed, 19 insertions, 8 deletions
diff --git a/devel/libgtop/patches/patch-al b/devel/libgtop/patches/patch-al
index 778f5870a8d..431ad76a1b3 100644
--- a/devel/libgtop/patches/patch-al
+++ b/devel/libgtop/patches/patch-al
@@ -1,15 +1,18 @@
-$NetBSD: patch-al,v 1.9 2000/06/26 18:05:46 dmcmahill Exp $
+$NetBSD: patch-al,v 1.10 2000/07/30 02:45:40 jlam Exp $
--- sysdeps/freebsd/prockernel.c.orig Sat Oct 16 14:31:43 1999
-+++ sysdeps/freebsd/prockernel.c Mon Jun 26 08:42:11 2000
-@@ -35,5 +35,5 @@
++++ sysdeps/freebsd/prockernel.c Sun Jul 23 06:16:47 2000
+@@ -34,7 +34,7 @@
+ #if (!defined __OpenBSD__) && (!defined __bsdi__)
#include <sys/user.h>
#endif
-#if !defined(__bsdi__) && !(defined(__FreeBSD__) && defined(__alpha__))
+#if !defined(__bsdi__) && !(defined(__FreeBSD__) && defined(__alpha__)) && !defined(__NetBSD__)
#include <machine/pcb.h>
#endif
-@@ -49,4 +49,9 @@
+ #if defined(__FreeBSD__) && !defined(__alpha__)
+@@ -48,6 +48,11 @@
+ #include <osreldate.h>
#endif
+#if defined(__NetBSD__) && defined(__arm32__)
@@ -19,7 +22,9 @@ $NetBSD: patch-al,v 1.9 2000/06/26 18:05:46 dmcmahill Exp $
+
static const unsigned long _glibtop_sysdeps_proc_kernel_pstats =
(1L << GLIBTOP_PROC_KERNEL_MIN_FLT) +
-@@ -130,6 +135,13 @@
+ (1L << GLIBTOP_PROC_KERNEL_MAJ_FLT) +
+@@ -129,8 +134,15 @@
+
glibtop_suid_enter (server);
+#ifdef __NetBSD__
@@ -33,7 +38,9 @@ $NetBSD: patch-al,v 1.9 2000/06/26 18:05:46 dmcmahill Exp $
+#endif
(unsigned long) &u_addr->u_stats,
(char *) &pstats, sizeof (pstats)) == sizeof (pstats))
-@@ -150,6 +162,10 @@
+ {
+@@ -149,8 +161,12 @@
+ buf->flags |= _glibtop_sysdeps_proc_kernel_pstats;
}
+#ifdef __NetBSD__
@@ -44,13 +51,16 @@ $NetBSD: patch-al,v 1.9 2000/06/26 18:05:46 dmcmahill Exp $
+#endif
(unsigned long) &u_addr->u_pcb,
(char *) &pcb, sizeof (pcb)) == sizeof (pcb))
-@@ -168,4 +184,5 @@
+ {
+@@ -167,14 +183,36 @@
+ /*xxx FreeBSD/Alpha? */
#endif
#else
+#ifdef __i386__
buf->kstk_esp = (u_int64_t) pcb.pcb_tss.tss_esp0;
#ifdef __bsdi__
-@@ -174,6 +191,27 @@
+ buf->kstk_eip = (u_int64_t) pcb.pcb_tss.tss_eip;
+ #else
buf->kstk_eip = (u_int64_t) pcb.pcb_tss.__tss_eip;
#endif
+#else
@@ -78,3 +88,4 @@ $NetBSD: patch-al,v 1.9 2000/06/26 18:05:46 dmcmahill Exp $
+#endif
#endif
}
+