123721Sgusella /* 2*61885Sbostic * Copyright (c) 1983, 1993 3*61885Sbostic * The Regents of the University of California. All rights reserved. 433123Sbostic * 542829Sbostic * %sccs.include.redist.c% 623721Sgusella */ 723721Sgusella 823721Sgusella #ifndef lint 9*61885Sbostic static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 06/06/93"; 1033123Sbostic #endif /* not lint */ 1123721Sgusella 1223721Sgusella #include "timedc.h" 1323721Sgusella 1423721Sgusella char clockdiffhelp[] = "measures clock differences between machines"; 1523721Sgusella char helphelp[] = "gets help on commands"; 1623721Sgusella char msitehelp[] = "finds location of master"; 1723721Sgusella char quithelp[] = "exits timedc"; 1823721Sgusella char testinghelp[] = "causes election timers to expire"; 1923721Sgusella char tracinghelp[] = "turns tracing on or off"; 2023721Sgusella 2123721Sgusella struct cmd cmdtab[] = { 2223721Sgusella { "clockdiff", clockdiffhelp, clockdiff, 0 }, 2328862Sbloom { "election", testinghelp, testing, 1 }, 2423721Sgusella { "help", helphelp, help, 0 }, 2523721Sgusella { "msite", msitehelp, msite, 0 }, 2623721Sgusella { "quit", quithelp, quit, 0 }, 2728862Sbloom { "trace", tracinghelp, tracing, 1 }, 2823721Sgusella { "?", helphelp, help, 0 }, 2923721Sgusella }; 3023721Sgusella 3123721Sgusella int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); 32