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/systat | |
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/systat')
-rw-r--r-- | usr.bin/systat/devs.c | 8 | ||||
-rw-r--r-- | usr.bin/systat/extern.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/systat/devs.c b/usr.bin/systat/devs.c index 42cc88a..9e846db 100644 --- a/usr.bin/systat/devs.c +++ b/usr.bin/systat/devs.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: devs.c,v 1.1 1998/09/15 08:16:40 gibbs Exp $ */ /* * Some code and ideas taken from the old disks.c. @@ -81,8 +81,10 @@ typedef enum { last_match_type last_type; struct device_selection *dev_select; -int generation, num_devices, num_selected; -int num_selections, select_generation; +long generation; +int num_devices, num_selected; +int num_selections; +long select_generation; struct devstat_match *matches = NULL; int num_matches = 0; char **specified_devices; diff --git a/usr.bin/systat/extern.h b/usr.bin/systat/extern.h index 3b44cd9..d6e3887 100644 --- a/usr.bin/systat/extern.h +++ b/usr.bin/systat/extern.h @@ -61,11 +61,11 @@ extern int verbose; struct inpcb; extern struct device_selection *dev_select; -extern int generation; +extern long generation; extern int num_devices; extern int num_selected; extern int num_selections; -extern int select_generation; +extern long select_generation; int checkhost __P((struct inpcb *)); int checkport __P((struct inpcb *)); |