diff options
author | ken <ken@FreeBSD.org> | 1998-09-20 00:11:23 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-09-20 00:11:23 +0000 |
commit | 7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e (patch) | |
tree | c143714a5306e798bef167a851c06b083fcf45ad /usr.bin/vmstat | |
parent | 79ff6f224d335b39f52730937b59b8cbc8bf329b (diff) | |
download | FreeBSD-src-7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e.zip FreeBSD-src-7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e.tar.gz |
Change the devstat generation number from an int to a long. The int-sized
generation was causing unaligned access faults on the Alpha.
I have incremented the devstat version number, since this is an interface
change. You'll need to recompile libdevstat, systat, iostat, vmstat and
rpc.rstatd along with your kernel.
Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 6119fb7..3e6b65a 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: vmstat.c,v 1.25 1998/09/15 08:16:43 gibbs Exp $"; + "$Id: vmstat.c,v 1.26 1998/09/16 18:20:23 dillon Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -142,12 +142,14 @@ struct nlist namelist[] = { }; struct statinfo cur, last; -int num_devices, maxshowdevs, generation; +int num_devices, maxshowdevs; +long generation; struct device_selection *dev_select; int num_selected; struct devstat_match *matches; int num_matches = 0; -int num_devices_specified, num_selections, select_generation; +int num_devices_specified, num_selections; +long select_generation; char **specified_devices; devstat_select_mode select_mode; |