179645d52Sgusella /* 2*24002341Sbostic * Copyright (c) 1983, 1993 3*24002341Sbostic * The Regents of the University of California. All rights reserved. 4b0eb8cefSbostic * 5e1a0b129Sbostic * %sccs.include.redist.c% 679645d52Sgusella */ 779645d52Sgusella 879645d52Sgusella #ifndef lint 9*24002341Sbostic static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 06/06/93"; 10b0eb8cefSbostic #endif /* not lint */ 1179645d52Sgusella 1279645d52Sgusella #include "timedc.h" 1379645d52Sgusella 1479645d52Sgusella char clockdiffhelp[] = "measures clock differences between machines"; 1579645d52Sgusella char helphelp[] = "gets help on commands"; 1679645d52Sgusella char msitehelp[] = "finds location of master"; 1779645d52Sgusella char quithelp[] = "exits timedc"; 1879645d52Sgusella char testinghelp[] = "causes election timers to expire"; 1979645d52Sgusella char tracinghelp[] = "turns tracing on or off"; 2079645d52Sgusella 2179645d52Sgusella struct cmd cmdtab[] = { 2279645d52Sgusella { "clockdiff", clockdiffhelp, clockdiff, 0 }, 238d9ec2d4Sbloom { "election", testinghelp, testing, 1 }, 2479645d52Sgusella { "help", helphelp, help, 0 }, 2579645d52Sgusella { "msite", msitehelp, msite, 0 }, 2679645d52Sgusella { "quit", quithelp, quit, 0 }, 278d9ec2d4Sbloom { "trace", tracinghelp, tracing, 1 }, 2879645d52Sgusella { "?", helphelp, help, 0 }, 2979645d52Sgusella }; 3079645d52Sgusella 3179645d52Sgusella int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); 32