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

Diff for /src/usr.bin/vmstat/dkstats.c between version 1.18 and 1.19

version 1.18, 2002/06/19 08:45:52 version 1.19, 2002/06/28 22:40:53
Line 86 
Line 86 
 struct _disk    cur, last;  struct _disk    cur, last;
   
 /* Kernel pointers: nlistf and memf defined in calling program. */  /* Kernel pointers: nlistf and memf defined in calling program. */
   #if !defined(NOKVM)
 static kvm_t    *kd = NULL;  static kvm_t    *kd = NULL;
   #endif
 extern char     *nlistf;  extern char     *nlistf;
 extern char     *memf;  extern char     *memf;
   
   #if !defined(NOKVM)
 /* Pointer to list of disks. */  /* Pointer to list of disks. */
 static struct disk      *dk_drivehead = NULL;  static struct disk      *dk_drivehead = NULL;
   #endif
   
 /* Backward compatibility references. */  /* Backward compatibility references. */
 int             dk_ndrive = 0;  int             dk_ndrive = 0;
Line 152 
Line 156 
 void  void
 dkreadstats()  dkreadstats()
 {  {
   #if !defined(NOKVM)
         struct disk     cur_disk, *p;          struct disk     cur_disk, *p;
   #endif
         int             i, mib[3];          int             i, mib[3];
         size_t          size;          size_t          size;
         struct diskstats *q;          struct diskstats *q;
Line 227 
Line 233 
 dkinit(select)  dkinit(select)
 int     select;  int     select;
 {  {
   #if !defined(NOKVM)
         struct disklist_head disk_head;          struct disklist_head disk_head;
         struct disk     cur_disk, *p;          struct disk     cur_disk, *p;
         char            errbuf[_POSIX2_LINE_MAX];          char            errbuf[_POSIX2_LINE_MAX];
   #endif
         static int      once = 0;          static int      once = 0;
         extern int      hz;          extern int      hz;
         int             i, mib[2];          int             i, mib[2];

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