xref: /original-bsd/usr.sbin/timed/timedc/timedc.h (revision 89a39cb6)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)timedc.h	2.4 (Berkeley) 06/01/90
8  */
9 
10 #include <sys/param.h>
11 #include <stdio.h>
12 #include <sys/time.h>
13 #include <errno.h>
14 #include <sys/socket.h>
15 #include <netinet/in.h>
16 #include <netdb.h>
17 #include <arpa/inet.h>
18 
19 extern int errno;
20 
21 #define ON		1
22 #define OFF		0
23 
24 #define MSGS 		6
25 #define TRIALS		5
26 
27 #define GOOD		1
28 #define UNREACHABLE	2
29 #define NONSTDTIME	3
30 #define HOSTDOWN 	0x7fffffff
31 
32 struct	cmd {
33 	char	*c_name;		/* command name */
34 	char	*c_help;		/* help message */
35 	int	(*c_handler)();		/* routine to do the work */
36 	int	c_priv;			/* privileged command */
37 };
38