xref: /csrg-svn/usr.sbin/timed/timedc/timedc.h (revision 61885)
159906Sbostic /*-
2*61885Sbostic  * Copyright (c) 1985, 1993
3*61885Sbostic  *	The Regents of the University of California.  All rights reserved.
433123Sbostic  *
542829Sbostic  * %sccs.include.redist.c%
633123Sbostic  *
7*61885Sbostic  *	@(#)timedc.h	8.1 (Berkeley) 06/06/93
823671Sgusella  */
923671Sgusella 
1024905Sbloom #include <sys/param.h>
1123671Sgusella #include <sys/time.h>
1259906Sbostic #ifdef sgi
1359906Sbostic #include <sys/uio.h>
1459906Sbostic #endif
1523671Sgusella #include <sys/socket.h>
1623671Sgusella #include <netinet/in.h>
1723671Sgusella #include <arpa/inet.h>
1823671Sgusella 
1959906Sbostic #include <errno.h>
2059906Sbostic #include <netdb.h>
2159906Sbostic #include <stdio.h>
2259906Sbostic 
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 */
3659906Sbostic 	void	(*c_handler)();		/* routine to do the work */
3723671Sgusella 	int	c_priv;			/* privileged command */
3823671Sgusella };
3959906Sbostic 
4059906Sbostic #include "extern.h"
41