1*23721Sgusella /* 2*23721Sgusella * Copyright (c) 1983 Regents of the University of California. 3*23721Sgusella * All rights reserved. The Berkeley software License Agreement 4*23721Sgusella * specifies the terms and conditions for redistribution. 5*23721Sgusella */ 6*23721Sgusella 7*23721Sgusella #ifndef lint 8*23721Sgusella static char sccsid[] = "@(#)cmdtab.c 1.1 (Berkeley) 06/24/85"; 9*23721Sgusella #endif not lint 10*23721Sgusella 11*23721Sgusella #include "timedc.h" 12*23721Sgusella 13*23721Sgusella int clockdiff(), help(), msite(), quit(), testing(), tracing(); 14*23721Sgusella 15*23721Sgusella char clockdiffhelp[] = "measures clock differences between machines"; 16*23721Sgusella char helphelp[] = "gets help on commands"; 17*23721Sgusella char msitehelp[] = "finds location of master"; 18*23721Sgusella char quithelp[] = "exits timedc"; 19*23721Sgusella char testinghelp[] = "causes election timers to expire"; 20*23721Sgusella char tracinghelp[] = "turns tracing on or off"; 21*23721Sgusella 22*23721Sgusella struct cmd cmdtab[] = { 23*23721Sgusella { "clockdiff", clockdiffhelp, clockdiff, 0 }, 24*23721Sgusella { "help", helphelp, help, 0 }, 25*23721Sgusella { "msite", msitehelp, msite, 0 }, 26*23721Sgusella { "quit", quithelp, quit, 0 }, 27*23721Sgusella { "testing", testinghelp, testing, 1 }, 28*23721Sgusella { "tracing", tracinghelp, tracing, 1 }, 29*23721Sgusella { "?", helphelp, help, 0 }, 30*23721Sgusella { 0 }, 31*23721Sgusella }; 32*23721Sgusella 33*23721Sgusella int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); 34