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 2.1.1 (2.11BSD GTE) 1/1/94 */
8:
9: #include <sys/param.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 ON 1
21: #define OFF 0
22:
23: #define MSGS 6
24: #define TRIALS 5
25:
26: #define GOOD 1
27: #define UNREACHABLE 2
28: #define NONSTDTIME 3
29: #ifdef pdp11
30: #define HOSTDOWN 0x7fff
31: #else
32: #define HOSTDOWN 0x7fffffff
33: #endif
34:
35: struct cmd {
36: char *c_name; /* command name */
37: char *c_help; /* help message */
38: int (*c_handler)(); /* routine to do the work */
39: int c_priv; /* privileged command */
40: };
Defined struct's
cmd
defined in line
35; used 26 times
Defined macros
GOOD
defined in line
26;
never used
MSGS
defined in line
23;
never used
OFF
defined in line
21; used 1 times
ON
defined in line
20; used 1 times
Usage of this include