diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-09 16:32:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-09 16:32:55 +0000 |
commit | 8812679a4a154380cc07097b6654574e30cee564 (patch) | |
tree | c7451f835f98ec4b8234941c32fdba5ef976864f | |
parent | aeb42ec02f4adbf043b21363d6e3bb748890a2bd (diff) |
remove post-mortem stuff (sysctl only here)
-rw-r--r-- | usr.bin/systat/vmstat.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index e95f12bbf2d..428bd1dc4e0 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmstat.c,v 1.51 2004/06/28 01:45:51 aaron Exp $ */ +/* $OpenBSD: vmstat.c,v 1.52 2004/07/09 16:32:54 deraadt Exp $ */ /* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif -static char rcsid[] = "$OpenBSD: vmstat.c,v 1.51 2004/06/28 01:45:51 aaron Exp $"; +static char rcsid[] = "$OpenBSD: vmstat.c,v 1.52 2004/07/09 16:32:54 deraadt Exp $"; #endif /* not lint */ /* @@ -129,18 +129,6 @@ closekre(WINDOW *w) } -static struct nlist namelist[] = { -#define X_INTRNAMES 0 /* no sysctl */ - { "_intrnames" }, -#define X_EINTRNAMES 1 /* no sysctl */ - { "_eintrnames" }, -#define X_INTRCNT 2 /* no sysctl */ - { "_intrcnt" }, -#define X_EINTRCNT 3 /* no sysctl */ - { "_eintrcnt" }, - { "" }, -}; - /* * These constants define where the major pieces are laid out */ @@ -175,17 +163,6 @@ initkre(void) int mib[4], i, ret; size_t size; - if (namelist[0].n_type == 0) { - if ((ret = kvm_nlist(kd, namelist)) == -1) - errx(1, "%s", kvm_geterr(kd)); - else if (ret > 1) - nlisterr(namelist); - if (namelist[0].n_type == 0) { - error("No namelist"); - return(0); - } - } - mib[0] = CTL_HW; mib[1] = HW_NCPU; size = sizeof(ncpu); |