xref: /csrg-svn/usr.sbin/timed/timedc/cmdtab.c (revision 42829)
123721Sgusella /*
223721Sgusella  * Copyright (c) 1983 Regents of the University of California.
333123Sbostic  * All rights reserved.
433123Sbostic  *
5*42829Sbostic  * %sccs.include.redist.c%
623721Sgusella  */
723721Sgusella 
823721Sgusella #ifndef lint
9*42829Sbostic static char sccsid[] = "@(#)cmdtab.c	2.6 (Berkeley) 06/01/90";
1033123Sbostic #endif /* not lint */
1123721Sgusella 
1223721Sgusella #include "timedc.h"
1323721Sgusella 
1423721Sgusella int	clockdiff(), help(), msite(), quit(), testing(), tracing();
1523721Sgusella 
1623721Sgusella char	clockdiffhelp[] =	"measures clock differences between machines";
1723721Sgusella char	helphelp[] =		"gets help on commands";
1823721Sgusella char	msitehelp[] =		"finds location of master";
1923721Sgusella char	quithelp[] =		"exits timedc";
2023721Sgusella char	testinghelp[] =		"causes election timers to expire";
2123721Sgusella char	tracinghelp[] =		"turns tracing on or off";
2223721Sgusella 
2323721Sgusella struct cmd cmdtab[] = {
2423721Sgusella 	{ "clockdiff",	clockdiffhelp,	clockdiff,	0 },
2528862Sbloom 	{ "election",	testinghelp,	testing,	1 },
2623721Sgusella 	{ "help",	helphelp,	help,		0 },
2723721Sgusella 	{ "msite",	msitehelp,	msite,		0 },
2823721Sgusella 	{ "quit",	quithelp,	quit,		0 },
2928862Sbloom 	{ "trace",	tracinghelp,	tracing,	1 },
3023721Sgusella 	{ "?",		helphelp,	help,		0 },
3123721Sgusella };
3223721Sgusella 
3323721Sgusella int	NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
34