1: /*
   2:  * Copyright (c) 1983 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	2.3 (Berkeley) 5/28/86";
   9: #endif not lint
  10: 
  11: #include "timedc.h"
  12: 
  13: int clockdiff(), help(), msite(), quit(), testing(), tracing();
  14: 
  15: char    clockdiffhelp[] =   "measures clock differences between machines";
  16: char    helphelp[] =        "gets help on commands";
  17: char    msitehelp[] =       "finds location of master";
  18: char    quithelp[] =        "exits timedc";
  19: char    testinghelp[] =     "causes election timers to expire";
  20: char    tracinghelp[] =     "turns tracing on or off";
  21: 
  22: struct cmd cmdtab[] = {
  23:     { "clockdiff",  clockdiffhelp,  clockdiff,  0 },
  24:     { "election",   testinghelp,    testing,    1 },
  25:     { "help",   helphelp,   help,       0 },
  26:     { "msite",  msitehelp,  msite,      0 },
  27:     { "quit",   quithelp,   quit,       0 },
  28:     { "trace",  tracinghelp,    tracing,    1 },
  29:     { "?",      helphelp,   help,       0 },
  30: };
  31: 
  32: int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);

Defined variables

NCMDS defined in line 32; never used
clockdiffhelp defined in line 15; used 1 times
  • in line 23
cmdtab defined in line 22; used 2 times
  • in line 32(2)
helphelp defined in line 16; used 2 times
msitehelp defined in line 17; used 1 times
  • in line 26
quithelp defined in line 18; used 1 times
  • in line 27
sccsid defined in line 8; never used
testinghelp defined in line 19; used 1 times
  • in line 24
tracinghelp defined in line 20; used 1 times
  • in line 28
Last modified: 1986-05-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1115
Valid CSS Valid XHTML 1.0 Strict