1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 */ 6 7 /* @(#)timedc.h 1.1 (Berkeley) 06/22/85 */ 8 9 #include <sys/types.h> 10 #include <stdio.h> 11 #include <sys/time.h> 12 #include <errno.h> 13 #include <sys/socket.h> 14 #include <netinet/in.h> 15 #include <netdb.h> 16 #include <arpa/inet.h> 17 18 extern int errno; 19 20 #define MSGS 4 21 #define TRIALS 8 22 23 #define GOOD 1 24 #define UNREACHABLE 2 25 #define NONSTDTIME 3 26 #define HOSTDOWN 0x7fffffff 27 28 struct cmd { 29 char *c_name; /* command name */ 30 char *c_help; /* help message */ 31 int (*c_handler)(); /* routine to do the work */ 32 int c_priv; /* privileged command */ 33 }; 34