home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / s / slurp103.zip / CONF.H < prev    next >
Text File  |  1992-12-20  |  4KB  |  137 lines

  1. /*
  2.  * slurp.h - common definitions for slurp
  3.  *
  4.  * Copyright (C) 1992 Stephen Hebditch. All rights reserved.
  5.  * TQM Communications, BCM Box 225, London, WC1N 3XX.
  6.  * steveh@orbital.demon.co.uk  +44 836 825962
  7.  *
  8.  * See README for more information and disclaimers
  9.  *
  10.  * 1.00  29 Sep 92  SH  Initial coding.
  11.  * 1.03  15 Dec 92  SH  Added SYS_ERRLIST
  12.  *
  13.  */
  14.  
  15.  
  16. /* SLURP CONFIGURATION
  17.    =================== */
  18.  
  19. /* Set these to the location of the slurp configuration files - NEWSLIB
  20.    is usually a good place for them. */
  21.  
  22. #define SYSFILE            "/usr/lib/news/slurp.sys"
  23. #define TIMFILE            "/usr/lib/news/slurp.tim"
  24.  
  25.  
  26. /* If SPEEDUP is defined then there will always be one ARTICLE request
  27.    stacked up at the NNTP server before the current article has finished
  28.    being received. Although not strictly conforming to the standard this
  29.    allows a much greater article throughput. */
  30.  
  31. #define SPEEDUP
  32.  
  33.  
  34. /* If defined then the number of characters per second transferred during
  35.    the article request phase will be logged. */
  36.  
  37. #define SPEEDSTATS
  38.  
  39.  
  40. /* MAXCACHE sets the maximum number of articles that may be requested in
  41.    any one session. If this is exceeded then this is noted to the log and
  42.    the new time for the next NEWNEWS will not be written. */
  43.  
  44. #define MAXCACHE        4096
  45.  
  46.  
  47. /* NEWS CONFIGURATION
  48.    ================== */
  49.  
  50. /* The location of the rnews program. */
  51.  
  52. #define RNEWS           "/usr/bin/rnews"
  53.  
  54.  
  55. /* The location of the news history file. */
  56.  
  57. #define HISTORY_FILE    "/usr/lib/news/history"
  58.  
  59.  
  60. /* The database format used by the news history file. For modern C News
  61.    and INN this will almost certainly be DBZ. */
  62.  
  63. #define DBZ
  64. #undef    DBM
  65. #undef    NDBM
  66.  
  67.  
  68. /* The location of the spool directory holding news articles. This is
  69.    needed so we can check if there is enough space before starting to
  70.    build up another batch of articles. */
  71.  
  72. #define SPOOLDIR        "/var/spool/news"
  73.  
  74.  
  75. /* If less then MINFREE blocks are available on the disk containing
  76.    SPOOLDIR then slurp will be aborted. If MINFREE is not defined then
  77.    a space check is not carried out. */
  78.  
  79. #define MINFREE 4000
  80.                         
  81.  
  82. /* UNIX VERSION CONFIGURATION
  83.    ========================== */
  84.  
  85. /* The facility name which syslog reports errors and stats under. If you
  86.    don't want to use syslog for reporting then undefine and the
  87.    information will be written to stderr instead. */
  88.  
  89. #define SYSLOG            LOG_NEWS
  90.  
  91.  
  92. /* If you don't have syslog then you can use the supplied fakesyslog
  93.    instead. Define FAKESYSLOG to be the name of the file to contain the
  94.    log. If your host supports the BSD fdopen() function and the O_APPEND
  95.    flag to open(), you should define FAKEAPPEND with FAKESYSLOG so that
  96.    multiple copies of nntpd don't trash the log with buffered fprintfs. */
  97.    
  98. /* #define FAKESYSLOG      "/usr/lib/news/nntplog" /* */
  99. /* #define FAKEAPPEND /* */
  100.  
  101.  
  102. /* Set the below according to whether you're running a BSD or USG
  103.    variant of UNIX. You may need to add some other #defines to set
  104.    the correct options in space.c - see that file for details. */
  105.  
  106. #define USG                /* USL System V */
  107. #undef BSD_42            /* BSD 4.2 */
  108. #undef BSD_43            /* BSD 4.3 */
  109.  
  110.  
  111. /* Change to int if your signal() is old and returns int instead of void */
  112.  
  113. #define SIGRET            void
  114.  
  115.  
  116. /* Define if your system has extern char sys_errlist[], but no strerror() */
  117.  
  118. #undef SYS_ERRLIST
  119.  
  120.  
  121. /* STUFF BELOW PROBABLY DOESN'T NEED ALTERING
  122.    ========================================== */
  123.  
  124. #define MSGIDMAX        256        /* Maximum size of a message id */
  125.  
  126. #define BATCHSIZEMAX    300000L    /* Optimum size of a news batch */
  127. #define BATCHARTSMAX    1024    /* Max no of articles per batch */
  128. #define COPYSIZE        16384    /* Articles bigger than this size will
  129.                                    be written to a temporary file while
  130.                                    they are being retrieved, rather than
  131.                                    stored in memory */
  132.  
  133. #define TIMEOUT            60 * 10    /* Max time to wait for a line from the
  134.                                    server. */
  135.  
  136. /* END-OF-FILE */
  137.