From 7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e Mon Sep 17 00:00:00 2001 From: ken Date: Sun, 20 Sep 1998 00:11:23 +0000 Subject: 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 --- usr.sbin/iostat/iostat.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.sbin/iostat') diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index 8a9368c..e961725 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: iostat.c,v 1.10 1998/09/16 18:03:44 dillon Exp $ + * $Id: iostat.c,v 1.11 1998/09/16 23:14:47 ken Exp $ */ /* * Parts of this program are derived from the original FreeBSD iostat @@ -155,7 +155,7 @@ usage(void) * This isn't mentioned in the man page, or the usage statement, * but it is supported. */ - fprintf(stderr, "usage: iostat [-CdhIoT?] [-c count] [-M core]" + fprintf(stderr, "usage: iostat [-CdhIKoT?] [-c count] [-M core]" " [-n devs] [-N system]\n" "\t [-t type,if,pass] [-w wait] [drives]\n"); } @@ -175,9 +175,10 @@ main(int argc, char **argv) kvm_t *kd; int hz, stathz; int headercount; - int generation; + long generation; int num_devices_specified; - int num_selected, num_selections, select_generation; + int num_selected, num_selections; + long select_generation; char **specified_devices; devstat_select_mode select_mode; -- cgit v1.1