123721Sgusella /* 223721Sgusella * Copyright (c) 1983 Regents of the University of California. 323721Sgusella * All rights reserved. The Berkeley software License Agreement 423721Sgusella * specifies the terms and conditions for redistribution. 523721Sgusella */ 623721Sgusella 723721Sgusella #ifndef lint 8*28862Sbloom static char sccsid[] = "@(#)cmdtab.c 2.3 (Berkeley) 05/28/86"; 923721Sgusella #endif not lint 1023721Sgusella 1123721Sgusella #include "timedc.h" 1223721Sgusella 1323721Sgusella int clockdiff(), help(), msite(), quit(), testing(), tracing(); 1423721Sgusella 1523721Sgusella char clockdiffhelp[] = "measures clock differences between machines"; 1623721Sgusella char helphelp[] = "gets help on commands"; 1723721Sgusella char msitehelp[] = "finds location of master"; 1823721Sgusella char quithelp[] = "exits timedc"; 1923721Sgusella char testinghelp[] = "causes election timers to expire"; 2023721Sgusella char tracinghelp[] = "turns tracing on or off"; 2123721Sgusella 2223721Sgusella struct cmd cmdtab[] = { 2323721Sgusella { "clockdiff", clockdiffhelp, clockdiff, 0 }, 24*28862Sbloom { "election", testinghelp, testing, 1 }, 2523721Sgusella { "help", helphelp, help, 0 }, 2623721Sgusella { "msite", msitehelp, msite, 0 }, 2723721Sgusella { "quit", quithelp, quit, 0 }, 28*28862Sbloom { "trace", tracinghelp, tracing, 1 }, 2923721Sgusella { "?", helphelp, help, 0 }, 3023721Sgusella }; 3123721Sgusella 3223721Sgusella int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); 33