1 /*- 2 * Copyright (c) 1985, 1993 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)timedc.h 5.1 (Berkeley) 05/11/93 8 */ 9 10 #include <sys/param.h> 11 #include <sys/time.h> 12 #ifdef sgi 13 #include <sys/uio.h> 14 #endif 15 #include <sys/socket.h> 16 #include <netinet/in.h> 17 #include <arpa/inet.h> 18 19 #include <errno.h> 20 #include <netdb.h> 21 #include <stdio.h> 22 23 extern int errno; 24 25 #define ON 1 26 #define OFF 0 27 28 #define GOOD 1 29 #define UNREACHABLE 2 30 #define NONSTDTIME 3 31 #define HOSTDOWN 0x7fffffff 32 33 struct cmd { 34 char *c_name; /* command name */ 35 char *c_help; /* help message */ 36 void (*c_handler)(); /* routine to do the work */ 37 int c_priv; /* privileged command */ 38 }; 39 40 #include "extern.h" 41