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.2 (Berkeley) 01/24/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 { "help", helphelp, help, 0 }, 25 { "msite", msitehelp, msite, 0 }, 26 { "quit", quithelp, quit, 0 }, 27 { "testing", testinghelp, testing, 1 }, 28 { "tracing", tracinghelp, tracing, 1 }, 29 { "?", helphelp, help, 0 }, 30 }; 31 32 int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); 33