xref: /original-bsd/usr.sbin/timed/timedc/cmdtab.c (revision 9acaf688)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)cmdtab.c	2.6 (Berkeley) 06/01/90";
10 #endif /* not lint */
11 
12 #include "timedc.h"
13 
14 int	clockdiff(), help(), msite(), quit(), testing(), tracing();
15 
16 char	clockdiffhelp[] =	"measures clock differences between machines";
17 char	helphelp[] =		"gets help on commands";
18 char	msitehelp[] =		"finds location of master";
19 char	quithelp[] =		"exits timedc";
20 char	testinghelp[] =		"causes election timers to expire";
21 char	tracinghelp[] =		"turns tracing on or off";
22 
23 struct cmd cmdtab[] = {
24 	{ "clockdiff",	clockdiffhelp,	clockdiff,	0 },
25 	{ "election",	testinghelp,	testing,	1 },
26 	{ "help",	helphelp,	help,		0 },
27 	{ "msite",	msitehelp,	msite,		0 },
28 	{ "quit",	quithelp,	quit,		0 },
29 	{ "trace",	tracinghelp,	tracing,	1 },
30 	{ "?",		helphelp,	help,		0 },
31 };
32 
33 int	NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
34