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