# 2.11BSD#431 - /usr/src/usr.sbin/timed/timedc.h

##### Macros

    GOOD              X
    HOSTDOWN          X
    MSGS              X
    NONSTDTIME        X
    OFF               X
    ON                X
    TRIALS            X
    UNREACHABLE       X

##### struct's

    cmd               X

       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

- in /usr/src/usr.sbin/timed/cmdtab.c line 22(2)
- in /usr/src/usr.sbin/timed/timedc.c line 31(2), 37(2), 52(2), 84(2), 92(2), 107(2), 124-129(4), 151(2), 189(2), 229-231(4)

#### Defined macros

GOOD defined in line 26; never used
HOSTDOWN defined in line 32; never used
MSGS defined in line 23; never used
NONSTDTIME defined in line 28; never used
OFF defined in line 21; used 1 times

- in /usr/src/usr.sbin/timed/cmds.c line 292

ON defined in line 20; used 1 times

- in /usr/src/usr.sbin/timed/cmds.c line 289

TRIALS defined in line 24; never used
UNREACHABLE defined in line 27; never used

#### Usage of this include

timedc.h used 3 times

- in /usr/src/usr.sbin/timed/cmds.c line 11
- in /usr/src/usr.sbin/timed/cmdtab.c line 11
- in /usr/src/usr.sbin/timed/timedc.c line 17

Last modified: 1994-01-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1127 |