xref: /csrg-svn/usr.sbin/timed/timedc/timedc.h (revision 33123)
123671Sgusella /*
223671Sgusella  * Copyright (c) 1983 Regents of the University of California.
3*33123Sbostic  * All rights reserved.
4*33123Sbostic  *
5*33123Sbostic  * Redistribution and use in source and binary forms are permitted
6*33123Sbostic  * provided that this notice is preserved and that due credit is given
7*33123Sbostic  * to the University of California at Berkeley. The name of the University
8*33123Sbostic  * may not be used to endorse or promote products derived from this
9*33123Sbostic  * software without specific prior written permission. This software
10*33123Sbostic  * is provided ``as is'' without express or implied warranty.
11*33123Sbostic  *
12*33123Sbostic  *	@(#)timedc.h	2.2 (Berkeleyb 12/23/87
1323671Sgusella  */
1423671Sgusella 
1524905Sbloom #include <sys/param.h>
1623671Sgusella #include <stdio.h>
1723671Sgusella #include <sys/time.h>
1823671Sgusella #include <errno.h>
1923671Sgusella #include <sys/socket.h>
2023671Sgusella #include <netinet/in.h>
2123671Sgusella #include <netdb.h>
2223671Sgusella #include <arpa/inet.h>
2323671Sgusella 
2423671Sgusella extern int errno;
2523671Sgusella 
2624905Sbloom #define ON		1
2724905Sbloom #define OFF		0
2824905Sbloom 
2925267Sgusella #define MSGS 		6
3025267Sgusella #define TRIALS		5
3123671Sgusella 
3223671Sgusella #define GOOD		1
3323671Sgusella #define UNREACHABLE	2
3423671Sgusella #define NONSTDTIME	3
3523671Sgusella #define HOSTDOWN 	0x7fffffff
3623671Sgusella 
3723671Sgusella struct	cmd {
3823671Sgusella 	char	*c_name;		/* command name */
3923671Sgusella 	char	*c_help;		/* help message */
4023671Sgusella 	int	(*c_handler)();		/* routine to do the work */
4123671Sgusella 	int	c_priv;			/* privileged command */
4223671Sgusella };
43