diff options
author | dg <dg@FreeBSD.org> | 1994-10-09 07:37:18 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-09 07:37:18 +0000 |
commit | 9666d1c886711d512dcfe954243785e4af31cd01 (patch) | |
tree | a2cbf7a0663627f113289a2dd4c8bb1ca5ebbe0b /usr.bin/systat | |
parent | 8ec51aef1b0ecb098cd4b888ceb95bac8aa816a5 (diff) | |
download | FreeBSD-src-9666d1c886711d512dcfe954243785e4af31cd01.zip FreeBSD-src-9666d1c886711d512dcfe954243785e4af31cd01.tar.gz |
#if 0'd out the meat of the swap code until I get a chance to rewrite it.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/swap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c index f587eb4..240767f 100644 --- a/usr.bin/systat/swap.c +++ b/usr.bin/systat/swap.c @@ -43,8 +43,8 @@ static char sccsid[] = "@(#)swap.c 8.2 (Berkeley) 2/21/94"; #include <sys/buf.h> #include <sys/conf.h> #include <sys/ioctl.h> -#include <sys/map.h> #include <sys/stat.h> +#include <sys/rlist.h> #include <kvm.h> #include <nlist.h> @@ -118,6 +118,7 @@ initswap() char msgbuf[BUFSIZ]; static int once = 0; +#if 0 if (once) return (1); if (kvm_nlist(kd, syms)) { @@ -145,6 +146,9 @@ initswap() KGET1(VM_SWDEVT, sw, nswdev * sizeof(*sw), "swdevt"); once = 1; return (1); +#else + return (0); +#endif } void @@ -152,6 +156,7 @@ fetchswap() { int s, e, i; +#if 0 s = nswapmap * sizeof(*mp); if (kvm_read(kd, (long)kswapmap, mp, s) != s) error("cannot read swapmap: %s", kvm_geterr(kd)); @@ -194,6 +199,7 @@ fetchswap() s = bound; } } +#endif } void |