xref: /csrg-svn/usr.sbin/timed/timedc/timedc.h (revision 59906)
1*59906Sbostic /*-
2*59906Sbostic  * Copyright (c) 1985, 1993 The Regents of the University of California.
333123Sbostic  * All rights reserved.
433123Sbostic  *
542829Sbostic  * %sccs.include.redist.c%
633123Sbostic  *
7*59906Sbostic  *	@(#)timedc.h	5.1 (Berkeley) 05/11/93
823671Sgusella  */
923671Sgusella 
1024905Sbloom #include <sys/param.h>
1123671Sgusella #include <sys/time.h>
12*59906Sbostic #ifdef sgi
13*59906Sbostic #include <sys/uio.h>
14*59906Sbostic #endif
1523671Sgusella #include <sys/socket.h>
1623671Sgusella #include <netinet/in.h>
1723671Sgusella #include <arpa/inet.h>
1823671Sgusella 
19*59906Sbostic #include <errno.h>
20*59906Sbostic #include <netdb.h>
21*59906Sbostic #include <stdio.h>
22*59906Sbostic 
2323671Sgusella extern int errno;
2423671Sgusella 
2524905Sbloom #define ON		1
2624905Sbloom #define OFF		0
2724905Sbloom 
2823671Sgusella #define GOOD		1
2923671Sgusella #define UNREACHABLE	2
3023671Sgusella #define NONSTDTIME	3
3123671Sgusella #define HOSTDOWN 	0x7fffffff
3223671Sgusella 
3323671Sgusella struct	cmd {
3423671Sgusella 	char	*c_name;		/* command name */
3523671Sgusella 	char	*c_help;		/* help message */
36*59906Sbostic 	void	(*c_handler)();		/* routine to do the work */
3723671Sgusella 	int	c_priv;			/* privileged command */
3823671Sgusella };
39*59906Sbostic 
40*59906Sbostic #include "extern.h"
41