1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifndef lint
   8: static char sccsid[] = "@(#)cmdtab.c	5.1 (Berkeley) 5/30/85";
   9: #endif not lint
  10: 
  11: #include "systat.h"
  12: 
  13: int     showpigs(), fetchpigs(), labelpigs();
  14: int initpigs(), closepigs();
  15: WINDOW  *openpigs();
  16: int     showswap(), fetchswap(), labelswap();
  17: int initswap(), closeswap();
  18: WINDOW  *openswap();
  19: int showmbufs(), fetchmbufs(), labelmbufs();
  20: int initmbufs(), closembufs();
  21: WINDOW  *openmbufs();
  22: int showiostat(), fetchiostat(), labeliostat();
  23: int initiostat(), closeiostat(), cmdiostat();
  24: WINDOW  *openiostat();
  25: int showkre(), fetchkre(), labelkre();
  26: int initkre(), closekre(), cmdkre();
  27: WINDOW  *openkre();
  28: int shownetstat(), fetchnetstat(), labelnetstat();
  29: int initnetstat(), closenetstat(), cmdnetstat();
  30: WINDOW  *opennetstat();
  31: 
  32: struct  cmdtab cmdtab[] = {
  33:         { "pigs",   showpigs,   fetchpigs,  labelpigs,
  34:       initpigs, openpigs,   closepigs,  0,
  35:       CF_LOADAV },
  36:         { "swap",   showswap,   fetchswap,  labelswap,
  37:       initswap, openswap,   closeswap,  0,
  38:       CF_LOADAV },
  39:         { "mbufs",  showmbufs,  fetchmbufs, labelmbufs,
  40:       initmbufs,    openmbufs,  closembufs, 0,
  41:       CF_LOADAV },
  42:         { "iostat", showiostat, fetchiostat,    labeliostat,
  43:       initiostat,   openiostat, closeiostat,    cmdiostat,
  44:       CF_LOADAV },
  45:         { "vmstat", showkre,    fetchkre,   labelkre,
  46:       initkre,  openkre,    closekre,   cmdkre,
  47:       0 },
  48:         { "netstat",    shownetstat,    fetchnetstat,   labelnetstat,
  49:       initnetstat,  opennetstat,    closenetstat,   cmdnetstat,
  50:       CF_LOADAV },
  51:         { 0 }
  52: };
  53: struct  cmdtab *curcmd = &cmdtab[0];

Defined variables

cmdtab defined in line 32; used 1 times
  • in line 53
curcmd defined in line 53; never used
sccsid defined in line 8; never used
Last modified: 1985-05-31
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 956
Valid CSS Valid XHTML 1.0 Strict