xref: /csrg-svn/usr.sbin/timed/timedc/timedc.h (revision 23671)
1*23671Sgusella /*
2*23671Sgusella  * Copyright (c) 1983 Regents of the University of California.
3*23671Sgusella  * All rights reserved.  The Berkeley software License Agreement
4*23671Sgusella  * specifies the terms and conditions for redistribution.
5*23671Sgusella  */
6*23671Sgusella 
7*23671Sgusella /*	@(#)timedc.h	1.1	(Berkeley)	06/22/85	*/
8*23671Sgusella 
9*23671Sgusella #include <sys/types.h>
10*23671Sgusella #include <stdio.h>
11*23671Sgusella #include <sys/time.h>
12*23671Sgusella #include <errno.h>
13*23671Sgusella #include <sys/socket.h>
14*23671Sgusella #include <netinet/in.h>
15*23671Sgusella #include <netdb.h>
16*23671Sgusella #include <arpa/inet.h>
17*23671Sgusella 
18*23671Sgusella extern int errno;
19*23671Sgusella 
20*23671Sgusella #define MSGS 		4
21*23671Sgusella #define TRIALS		8
22*23671Sgusella 
23*23671Sgusella #define GOOD		1
24*23671Sgusella #define UNREACHABLE	2
25*23671Sgusella #define NONSTDTIME	3
26*23671Sgusella #define HOSTDOWN 	0x7fffffff
27*23671Sgusella 
28*23671Sgusella struct	cmd {
29*23671Sgusella 	char	*c_name;		/* command name */
30*23671Sgusella 	char	*c_help;		/* help message */
31*23671Sgusella 	int	(*c_handler)();		/* routine to do the work */
32*23671Sgusella 	int	c_priv;			/* privileged command */
33*23671Sgusella };
34