# 2.11BSD#431 - /usr/src/new/nntp/xmit/nntpxmit.h

##### Macros

    BLOCK             X
    BSD4_2            X
    DONT_BLOCK        X
    DONT_WAIT         X
    FAIL              X
    FALSE             X
    FTRUNCATE         X
    L_DEBUG           X
    L_INFO            X
    L_NOTICE          X
    L_WARNING         X
    RELSIG            X
    SYSLOG            X
    TIMEOUT           X
    TRUE              X
    T_DECNET          X
    T_FD              X
    T_IP_TCP          X
    USG               X
    WAIT              X
    dprintf           X
    index             X
    rindex            X
    u_long            X
    u_short           X

       1: /*
       2: ** Random stuff needed for nntpxmit
       3: **
       4: ** This file also contains a lot of assumptions about what features
       5: ** are available on the local system - if something is not working
       6: ** to your liking, look them over carefully.
       7: */
       8:
       9: typedef int (*ifunp)(); /* pointer to function that returns int */
      10:
      11: #define dprintf if (Debug) fprintf
      12:
      13: #define TIMEOUT 3600        /* seconds to read timeout in sfgets */
      14:
      15: #ifndef TRUE
      16: #define TRUE    1
      17: #define FALSE   0
      18: #endif
      19:
      20: /* in goodbye() wait (or not) for QUIT response */
      21: #define WAIT        TRUE
      22: #define DONT_WAIT   FALSE
      23:
      24: /* in lockfd(), blocking, or non_blocking */
      25: #define BLOCK       FALSE
      26: #define DONT_BLOCK  TRUE
      27:
      28: #ifndef FAIL
      29: #define FAIL        (-1)
      30: #endif
      31:
      32:
      33: /* DECNET support is only there if the DECNET compile-time option defined */
      34: #define T_IP_TCP    1   /* transport is IP/TCP */
      35: #define T_DECNET    2   /* transport is DECNET */
      36: #define T_FD        3   /* transport is a descriptor */
      37:
      38: /* for syslog, if we compile it in */
      39: #define L_DEBUG     1
      40: #define L_INFO      2
      41: #define L_NOTICE    3
      42: #define L_WARNING   4
      43:
      44: #if (DECNET && !BSD4_2) /* if we have DECNET, we're an Ultrix */
      45: #define BSD4_2
      46: #undef  USG
      47: #endif
      48:
      49: #if (EXCELAN && !USG)   /* if we have EXCELAN, we're an Uglix */
      50: #define USG
      51: #undef  BSD4_2
      52: #endif
      53:
      54: #ifdef  USG         /* USG pinheadedness */
      55: #define index   strchr
      56: #define rindex  strrchr
      57: #define u_long  unsigned long
      58: #define u_short unsigned short
      59: #endif
      60:
      61: #ifdef  BSD4_2          /* look at all these goodies we get! */
      62: #define FTRUNCATE
      63: #define SYSLOG
      64: #define RELSIG
      65: #endif	BSD4_2
      66:
      67: #ifdef apollo
      68: #undef SYSLOG           /* Apollos don't have this by default */
      69: #endif

#### Defined macros

BLOCK defined in line 25; never used
BSD4_2 defined in line 45; used 7 times

- in line 44, 51, 61
- in /usr/src/new/nntp/xmit/nntpxmit.c line 68, 171, 282, 289

DONT_BLOCK defined in line 26; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 384, 995

DONT_WAIT defined in line 22; used 6 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 416, 437, 825, 1038
- in /usr/src/new/nntp/xmit/remote.c line 241, 252

FAIL defined in line 29; used 2 times

- in line 28
- in /usr/src/new/nntp/xmit/nntpxmit.c line 393

FALSE defined in line 17; used 39 times

- in line 22-25(2)
- in /usr/src/new/nntp/xmit/nntpxmit.c line 120, 227, 376, 386, 395, 468, 486, 510, 609, 637-659(9), 669, 675-682(3), 690-697(3), 703, 719-726(3), 735, 1122, 1132
- in /usr/src/new/nntp/xmit/remote.c line 269, 389-392(2), 408, 414

FTRUNCATE defined in line 62; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 365, 967

L_DEBUG defined in line 39; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 757, 763

L_INFO defined in line 40; used 3 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 321, 333, 1089

L_NOTICE defined in line 41; used 9 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 201, 466, 479-484(2), 501-504(2), 1033
- in /usr/src/new/nntp/xmit/remote.c line 208, 250

L_WARNING defined in line 42; used 21 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 375, 508, 824, 856, 918, 955-960(2), 971-976(2), 985-989(2), 1005, 1011, 1120, 1130
- in /usr/src/new/nntp/xmit/remote.c line 187, 200-204(2), 215, 222, 230

RELSIG defined in line 64; used 1 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 1029

SYSLOG defined in line 63; used 5 times

- in line 68
- in /usr/src/new/nntp/xmit/nntpxmit.c line 82, 188, 1092
- in /usr/src/new/nntp/xmit/remote.c line 39

TIMEOUT defined in line 13; used 1 times

- in /usr/src/new/nntp/xmit/remote.c line 326

TRUE defined in line 16; used 18 times

- in line 15, 21-26(2)
- in /usr/src/new/nntp/xmit/nntpxmit.c line 121-122(2), 167, 418, 426, 512, 609, 651-658(3), 729, 1136
- in /usr/src/new/nntp/xmit/remote.c line 64, 382, 403

T_DECNET defined in line 35; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 212, 248

T_FD defined in line 36; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 215, 250

T_IP_TCP defined in line 34; used 3 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 166, 209, 251

USG defined in line 50; used 6 times

- in line 46-54(3)
- in /usr/src/new/nntp/xmit/nntpxmit.c line 77, 151, 1115

WAIT defined in line 21; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 424, 437

dprintf defined in line 11; used 12 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 838, 851, 875, 882, 911, 929, 939, 945, 998, 1014
- in /usr/src/new/nntp/xmit/remote.c line 65, 108

index defined in line 55; used 6 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 147, 246, 584, 590, 609, 644

rindex defined in line 56; used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 146, 181

u_long defined in line 57; never used
u_short defined in line 58; never used

#### Usage of this include

nntpxmit.h used 2 times

- in /usr/src/new/nntp/xmit/nntpxmit.c line 62
- in /usr/src/new/nntp/xmit/remote.c line 31

Last modified: 1987-12-18 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1134 |