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