1: /*
   2:  * Configuration information for use by NNTP server and support
   3:  * programs.  Change these as appropriate for your system.
   4:  */
   5: 
   6: /*
   7:  * Compile time options.
   8:  */
   9: 
  10: #undef  ALONE       /* True if we're running without inetd */
  11: #undef  FASTFORK    /* True if we don't want to read active file on start */
  12: #undef  BSD_42      /* 4.2 compatability code -- if this is defined, */
  13:             /* DBM probably wants to be defined as well. */
  14: 
  15: #define NDBM        /* Use new-style (4.3) ndbm(3x) libraries */
  16: 
  17: #undef  DBM     /* True if we want to use the old dbm(3x) libraries */
  18:             /* IF YOU DEFINE THIS, change CFLAGS in makefile to */
  19:             /* be -ldbm */
  20: 
  21: #undef  USGHIST     /* Use USG style history file (no DBM) */
  22:             /* IF YOU DO NOT DEFINE NDBM or DBM, this is DEFAULT! */
  23: 
  24: #undef  USG     /* System V support */
  25: #undef  EXCELAN     /* Excelan EXOS 205 support */
  26: 
  27: #undef U_LONG       /* Define this if your <sys/types.h> is missing */
  28:             /* typedefs for u_long */
  29: 
  30: /*
  31:  * If you DON'T have vfork, make this "#define vfork fork"
  32:  * vfork will speed up article transfer nntpds by about 2.5 times.
  33:  */
  34: 
  35: #undef  vfork
  36: 
  37: /*
  38:  * If you have the syslog library routine, define SYSLOG to
  39:  * be thef syslog facility name under which stats should be
  40:  * logged.  Newer 4.3 systems might choose LOG_NEWS;
  41:  * LOG_LOCAL7 is an acceptable substitute.
  42:  *
  43:  * If you don't have support for syslog, but want a facsimile,
  44:  * define FAKESYSLOG to be the name of a file to which to log stuff,
  45:  * then define SYSLOG and LOG, too.  e.g.,
  46:  *
  47:  *	#define	FAKESYSLOG	"/usr/lib/news/nntplog"
  48:  *
  49:  * If you don't want any syslog-type activity, #undef SYSLOG.
  50:  * Obviously, this means that you can't define LOG, either.
  51:  */
  52: 
  53: #undef  FAKESYSLOG
  54: 
  55: #define SYSLOG  LOG_NEWS
  56: 
  57: #ifdef SYSLOG       /* Define LOG if you want copious logging info */
  58: #	define LOG    /* undef it if you don't */
  59: #endif			/* but you can only have LOG if you have SYSLOG */
  60: 
  61: #ifdef BSD_42       /* This is a logical, warranted assumption */
  62: #   ifndef DBM      /* which will probably get me in trouble. */
  63: #	define DBM    /* Kill it if you have 4.2 *and* ndbm.  */
  64: #   endif not DBM
  65: #endif BSD_42
  66: 
  67: #ifdef USG      /* Another similar assumption */
  68: #   ifndef USGHIST
  69: #       define USGHIST
  70: #   endif not USGHIST
  71: #endif USG
  72: 
  73: #undef  IHAVE_DEBUG /* Copious debugging output from ihave */
  74: 
  75: #define XHDR        /* Optional XHDR command.  Defining this will */
  76:             /* speed up '=' command in rn, but will load */
  77:             /* the server more.  If your server is heavily */
  78:             /* loaded already, defining this may be a bad idea */
  79: 
  80: #define SUBNET      /* If you have 4.3 subnetting */
  81: #undef  DAMAGED_NETMASK /* If your subnet mask is not a multiple of */
  82:             /* four bits (e.g., UCSD) */
  83: 
  84: #undef  NETMASK     /* If you don't have subnet ioctls, define */
  85:             /* this to be a hex constant of your subnet */
  86:             /* mask, e.g., #define NETMASK 0xffffff00 */
  87:             /* Of course, you must define SUBNET above, too. */
  88: #undef  DECNET      /* If you want decnet support */
  89: 
  90: #define GHNAME      /* Define if you have gethostname() */
  91: #undef  UUNAME      /* Define to use /etc/uucpname */
  92:             /* If neither of these are defined, */
  93:             /* inews will use the contents of */
  94:             /* /usr/include/whoami.h */
  95: 
  96: /*
  97:  * System V compatability
  98:  */
  99: 
 100: #ifdef USG
 101: # define    FCNTL           /* If O_etc is defined in <fcntl.h> */
 102: # define    NDIR            /* If you need ndir library support */
 103: # define    index   strchr
 104: # define    rindex  strrchr
 105: # ifdef U_LONG
 106:    typedef  unsigned long   u_long;
 107:    typedef  unsigned short  u_short;
 108: # endif U_LONG
 109: # define    IPPORT_NNTP 119
 110: #endif USG
 111: 
 112: /*
 113:  * How long you want nntp servers to hang out without receiving
 114:  * commands before they close the connection with an error message.
 115:  *
 116:  * You CANNOT have TIMEOUT while running in standalone (ALONE) mode,
 117:  * as SIGALRM is used for different things.
 118:  *
 119:  * If you don't want any timeout, #undef it, i.e.,
 120:  *
 121:  *	#undef	TIMEOUT
 122:  *
 123:  * TIMEOUT should be at least two hours, which allows users some time
 124:  * away from their terminal (e.g., at lunch) while reading news.
 125:  */
 126: 
 127: #ifndef ALONE
 128: #    define TIMEOUT (2 * 3600)
 129: #endif ALONE
 130: 
 131: /*
 132:  * How long you want nntp servers to wait without receiving data
 133:  * during article transfers.  You CANNOT have XFER_TIMEOUT while
 134:  * running in standalond (ALONE) mode.
 135:  *
 136:  * If you don't want any transfer timeouts, #undef it, as above.
 137:  */
 138: 
 139: #ifndef ALONE
 140: #   define  XFER_TIMEOUT    (30 * 60)
 141: #endif ALONE
 142: 
 143: /*
 144:  * Your domain.  This is for the inews generated From: line,
 145:  * assuming that it doesn't find one in the article's head.
 146:  * Suggestions are .UUCP if you don't belong to the Internet.
 147:  * If your hostname returns the fully-qualified domain name
 148:  * as some 4.3 BSD systems do, simply undefine DOMAIN.
 149:  *
 150:  * e.g.  #define	DOMAIN		"berkeley.edu"
 151:  */
 152: 
 153: #define DOMAIN  "eaton.com"
 154: 
 155: /*
 156:  * A file containing the name of the host which is running
 157:  * the news server.  This will have to match what rrn thinks,
 158:  * too.
 159:  */
 160: 
 161: #define SERVER_FILE "/usr/local/lib/rn/server"
 162: 
 163: /*
 164:  * Person (user name) to post news as.
 165:  */
 166: 
 167: #define POSTER      "jm"
 168: 
 169: /*
 170:  * These files are generated by the support programs, and are needed
 171:  * by the NNTP server.  Make sure that whatever directory you
 172:  * decide these files should go is writable by whatever uid you
 173:  * have the sypport programs run under.
 174:  */
 175: 
 176: #define STAT_FILE   "/usr/lib/news/mgdstats"
 177: #define NGDATE_FILE "/usr/lib/news/groupdates"
 178: 
 179: /*
 180:  * Some commonly used programs and files.
 181:  */
 182: 
 183: #define ACTIVE_FILE "/usr/lib/news/active"
 184: #define ACCESS_FILE "/usr/lib/news/nntp_access"
 185: #define HISTORY_FILE    "/usr/lib/news/history"
 186: #define SPOOLDIR    "/usr/spool/news"
 187: #define INEWS       "/usr/lib/news/inews"
 188: #define RNEWS       "/usr/bin/rnews"        /* Link to inews? */
 189: 
 190: /*
 191:  * Some miscellaneous stuff you probably don't want to change.
 192:  */
 193: 
 194: #define MAX_ARTICLES    4096        /* Maximum number of articles/group */
 195: #define READINTVL   60 * 10     /* 10 minutes b/n chking active file */

Defined typedef's

u_long defined in line 106; used 2 times
u_short defined in line 107; never used

Defined macros

ACCESS_FILE defined in line 184; used 1 times
DBM defined in line 63; used 9 times
DOMAIN defined in line 153; used 2 times
FCNTL defined in line 101; used 1 times
GHNAME defined in line 90; used 1 times
INEWS defined in line 187; used 1 times
MAX_ARTICLES defined in line 194; used 1 times
NDBM defined in line 15; used 2 times
NDIR defined in line 102; used 2 times
READINTVL defined in line 195; used 3 times
RNEWS defined in line 188; used 1 times
SERVER_FILE defined in line 161; used 2 times
STAT_FILE defined in line 176; used 4 times
TIMEOUT defined in line 128; used 8 times
USGHIST defined in line 69; used 7 times
XFER_TIMEOUT defined in line 140; used 9 times
XHDR defined in line 75; used 3 times
rindex defined in line 104; never used

Usage of this include

Last modified: 1988-07-19
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3682
Valid CSS Valid XHTML 1.0 Strict