xref: /original-bsd/usr.sbin/timed/timedc/timedc.h (revision df6dbad5)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that this notice is preserved and that due credit is given
7  * to the University of California at Berkeley. The name of the University
8  * may not be used to endorse or promote products derived from this
9  * software without specific prior written permission. This software
10  * is provided ``as is'' without express or implied warranty.
11  *
12  *	@(#)timedc.h	2.2 (Berkeleyb 12/23/87
13  */
14 
15 #include <sys/param.h>
16 #include <stdio.h>
17 #include <sys/time.h>
18 #include <errno.h>
19 #include <sys/socket.h>
20 #include <netinet/in.h>
21 #include <netdb.h>
22 #include <arpa/inet.h>
23 
24 extern int errno;
25 
26 #define ON		1
27 #define OFF		0
28 
29 #define MSGS 		6
30 #define TRIALS		5
31 
32 #define GOOD		1
33 #define UNREACHABLE	2
34 #define NONSTDTIME	3
35 #define HOSTDOWN 	0x7fffffff
36 
37 struct	cmd {
38 	char	*c_name;		/* command name */
39 	char	*c_help;		/* help message */
40 	int	(*c_handler)();		/* routine to do the work */
41 	int	c_priv;			/* privileged command */
42 };
43