f5d46be714
Remove bogus patch (indentical). no pkg change
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
$OpenBSD: patch-sysdeps_openbsd_prockernel_c,v 1.4 2012/01/22 11:55:10 ajacoutot Exp $
|
|
|
|
From b11aa1517e203e36a8901f03ea57c50a25dfbfc7 Mon Sep 17 00:00:00 2001
|
|
From: Antoine Jacoutot <ajacoutot@gnome.org>
|
|
Date: Sun, 22 Jan 2012 11:47:49 +0000
|
|
Subject: OpenBSD: kinfo_proc2 -> kinfo_proc
|
|
|
|
--- sysdeps/openbsd/prockernel.c.orig Sun Jul 24 21:13:56 2011
|
|
+++ sysdeps/openbsd/prockernel.c Mon Jan 9 18:37:24 2012
|
|
@@ -57,7 +57,7 @@ glibtop_get_proc_kernel_p (glibtop *server,
|
|
glibtop_proc_kernel *buf,
|
|
pid_t pid)
|
|
{
|
|
- struct kinfo_proc2 *pinfo;
|
|
+ struct kinfo_proc *pinfo;
|
|
int count;
|
|
|
|
glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
|
|
@@ -71,7 +71,7 @@ glibtop_get_proc_kernel_p (glibtop *server,
|
|
if (pid == 0) return;
|
|
|
|
/* Get the process information */
|
|
- pinfo = kvm_getproc2 (server->machine.kd, KERN_PROC_PID, pid,
|
|
+ pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid,
|
|
sizeof(*pinfo), &count);
|
|
if ((pinfo == NULL) || (count != 1)) {
|
|
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
|