[BACK]Return to vmstat.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / vmstat

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/vmstat/vmstat.c between version 1.46 and 1.47

version 1.46, 1998/03/05 02:47:05 version 1.47, 1998/07/05 08:02:34
Line 210  extern void dkswap __P((void));
Line 210  extern void dkswap __P((void));
 /* Namelist and memory file names. */  /* Namelist and memory file names. */
 char    *nlistf, *memf;  char    *nlistf, *memf;
   
   /* allow old usage [vmstat 1] */
   #define BACKWARD_COMPATIBILITY
   
 int  int
 main(argc, argv)  main(argc, argv)
         int argc;          int argc;
Line 317  main(argc, argv)
Line 320  main(argc, argv)
                 dkinit(0);      /* Initialize disk stats, no disks selected. */                  dkinit(0);      /* Initialize disk stats, no disks selected. */
                 argv = choosedrives(argv);      /* Select disks. */                  argv = choosedrives(argv);      /* Select disks. */
                 winsize.ws_row = 0;                  winsize.ws_row = 0;
                 (void) ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&winsize);                  (void)ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&winsize);
                 if (winsize.ws_row > 0)                  if (winsize.ws_row > 0)
                         winlines = winsize.ws_row;                          winlines = winsize.ws_row;
   
         }          }
   
 #define BACKWARD_COMPATIBILITY  
 #ifdef  BACKWARD_COMPATIBILITY  #ifdef  BACKWARD_COMPATIBILITY
         if (*argv) {          if (*argv) {
                 interval = atoi(*argv);                  interval = atoi(*argv);
Line 1185  hist_dodump(histp)
Line 1187  hist_dodump(histp)
 void  void
 usage()  usage()
 {  {
   
 #if defined(UVM)  #if defined(UVM)
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: vmstat [-fHilms] [-h histname] [-c count] [-M core] \              "usage: vmstat [-fHilms] [-h histname] [-c count] [-M core] \

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

CVSweb <webmaster@jp.NetBSD.org>