[BACK]Return to vmstat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / systat

Diff for /src/usr.bin/systat/vmstat.c between version 1.17 and 1.18

version 1.17, 1998/12/19 06:34:22 version 1.18, 1999/06/16 10:18:30
Line 66 
Line 66 
 #include <utmp.h>  #include <utmp.h>
 #include <unistd.h>  #include <unistd.h>
   
 #if defined(i386)  #if defined(__i386__)
 #define _KERNEL  #define _KERNEL
 #include <machine/psl.h>  #include <machine/psl.h>
 #undef _KERNEL  #undef _KERNEL
Line 158 
Line 158 
         { "_intrcnt" },          { "_intrcnt" },
 #define X_EINTRCNT      7  #define X_EINTRCNT      7
         { "_eintrcnt" },          { "_eintrcnt" },
 #if defined(i386)  #if defined(__i386__)
 #define X_INTRHAND      8  #define X_INTRHAND      8
         { "_intrhand" },          { "_intrhand" },
 #endif  #endif
Line 227 
Line 227 
 #undef allocate  #undef allocate
         }          }
         if (nintr == 0) {          if (nintr == 0) {
 #if defined(i386)  #if defined(__i386__)
                 struct intrhand *intrhand[16], *ihp, ih;                  struct intrhand *intrhand[16], *ihp, ih;
                 char iname[16];                  char iname[16];
                 int namelen, n;                  int namelen, n;
Line 655 
Line 655 
         int mib[2];          int mib[2];
         size_t size;          size_t size;
         extern int errno;          extern int errno;
 #if defined(i386)  #if defined(__i386__)
         struct intrhand *intrhand[16], *ihp, ih;          struct intrhand *intrhand[16], *ihp, ih;
         int i, n;          int i, n;
 #endif  #endif
Line 664 
Line 664 
         NREAD(X_CPTIME, s->time, sizeof s->time);          NREAD(X_CPTIME, s->time, sizeof s->time);
         NREAD(X_CNT, &s->Cnt, sizeof s->Cnt);          NREAD(X_CNT, &s->Cnt, sizeof s->Cnt);
         NREAD(X_NCHSTATS, &s->nchstats, sizeof s->nchstats);          NREAD(X_NCHSTATS, &s->nchstats, sizeof s->nchstats);
 #if defined(i386)  #if defined(__i386__)
         NREAD(X_INTRHAND, intrhand, sizeof(intrhand));          NREAD(X_INTRHAND, intrhand, sizeof(intrhand));
         for (i = 0, n = 0; i < 16; i++) {          for (i = 0, n = 0; i < 16; i++) {
                 ihp = intrhand[i];                  ihp = intrhand[i];

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18