xref: /csrg-svn/usr.sbin/timed/timedc/timedc.h (revision 25267)
123671Sgusella /*
223671Sgusella  * Copyright (c) 1983 Regents of the University of California.
323671Sgusella  * All rights reserved.  The Berkeley software License Agreement
423671Sgusella  * specifies the terms and conditions for redistribution.
523671Sgusella  */
623671Sgusella 
7*25267Sgusella /*	@(#)timedc.h	1.3	(Berkeley)	10/23/85	*/
823671Sgusella 
924905Sbloom #include <sys/param.h>
1023671Sgusella #include <stdio.h>
1123671Sgusella #include <sys/time.h>
1223671Sgusella #include <errno.h>
1323671Sgusella #include <sys/socket.h>
1423671Sgusella #include <netinet/in.h>
1523671Sgusella #include <netdb.h>
1623671Sgusella #include <arpa/inet.h>
1723671Sgusella 
1823671Sgusella extern int errno;
1923671Sgusella 
2024905Sbloom #define ON		1
2124905Sbloom #define OFF		0
2224905Sbloom 
23*25267Sgusella #define MSGS 		6
24*25267Sgusella #define TRIALS		5
2523671Sgusella 
2623671Sgusella #define GOOD		1
2723671Sgusella #define UNREACHABLE	2
2823671Sgusella #define NONSTDTIME	3
2923671Sgusella #define HOSTDOWN 	0x7fffffff
3023671Sgusella 
3123671Sgusella struct	cmd {
3223671Sgusella 	char	*c_name;		/* command name */
3323671Sgusella 	char	*c_help;		/* help message */
3423671Sgusella 	int	(*c_handler)();		/* routine to do the work */
3523671Sgusella 	int	c_priv;			/* privileged command */
3623671Sgusella };
37