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
DONT_BLOCK defined in line 26; used 2 times
FAIL defined in line 29; used 2 times
FALSE defined in line 17; used 39 times
FTRUNCATE defined in line 62; used 2 times
L_DEBUG defined in line 39; used 2 times
L_INFO defined in line 40; used 3 times
L_NOTICE defined in line 41; used 9 times
L_WARNING defined in line 42; used 21 times
RELSIG defined in line 64; used 1 times
SYSLOG defined in line 63; used 5 times
TIMEOUT defined in line 13; used 1 times
TRUE defined in line 16; used 18 times
T_DECNET defined in line 35; used 2 times
T_FD defined in line 36; used 2 times
T_IP_TCP defined in line 34; used 3 times
USG defined in line 50; used 6 times
WAIT defined in line 21; used 2 times
dprintf defined in line 11; used 12 times
index defined in line 55; used 6 times
rindex defined in line 56; used 2 times
u_long defined in line 57; never used
u_short defined in line 58; never used

Usage of this include

Last modified: 1987-12-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2904
Valid CSS Valid XHTML 1.0 Strict