home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / tcpip / nntp-1.5 / nntp-1 / nntp.1.5.11t / xmit / nntpxmit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-17  |  1.2 KB  |  59 lines

  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. #ifdef MMAP
  10. #include <sys/mman.h>
  11. #include <sys/stat.h>
  12. #endif MMAP
  13.  
  14. typedef    SIGRET    (*ifunp)();    /* pointer to function that returns */
  15.                 /* whatever signal() returns */
  16.  
  17. #define    dprintf    if (Debug) fprintf
  18.  
  19. #ifdef TIMEOUT
  20. #undef TIMEOUT
  21. #endif
  22. #define    TIMEOUT    3600        /* seconds to read timeout in sfgets */
  23.  
  24. #ifndef    TRUE
  25. #define    TRUE    1
  26. #define    FALSE    0
  27. #endif
  28.  
  29. /* in goodbye() wait (or not) for QUIT response */
  30. #define    WAIT        TRUE
  31. #define    DONT_WAIT    FALSE
  32.  
  33. /* in lockfd(), blocking, or non_blocking */
  34. #define    BLOCK        FALSE
  35. #define    DONT_BLOCK    TRUE
  36.  
  37. #ifndef FAIL
  38. #define    FAIL        (-1)
  39. #endif
  40.  
  41.  
  42. /* DECNET support is only there if the DECNET compile-time option defined */
  43. #define    T_IP_TCP    1    /* transport is IP/TCP */
  44. #define    T_DECNET    2    /* transport is DECNET */
  45. #define    T_FD        3    /* transport is a descriptor */
  46.  
  47. /* for syslog, if we compile it in */
  48. #define    L_DEBUG        1
  49. #define    L_INFO        2
  50. #define    L_NOTICE    3
  51. #define    L_WARNING    4
  52.  
  53.  
  54. #ifdef    BSD_42            /* look at all these goodies we get! */
  55. #define    FTRUNCATE
  56. #define    RELSIG
  57. #endif    BSD4_2
  58.  
  59.