# 2.11BSD#431 - /usr/src/new/nntp/common/conf.h

##### Macros

    ACCESS_FILE       X
    ACTIVE_FILE       X
    DBM               X
    DOMAIN            X
    FCNTL             X
    GHNAME            X
    HISTORY_FILE      X
    INEWS             X
    IPPORT_NNTP       X
    LOG               X
    MAX_ARTICLES      X
    NDBM              X
    NDIR              X
    NGDATE_FILE       X
    POSTER            X
    READINTVL         X
    RNEWS             X
    SERVER_FILE       X
    SPOOLDIR          X
    STAT_FILE         X
    SUBNET            X
    SYSLOG            X
    TIMEOUT           X
    USGHIST           X
    XFER_TIMEOUT      X
    XHDR              X
    index             X
    rindex            X

##### typedef's

    u_long            X
    u_short           X

       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

- in /usr/src/new/nntp/server/access_inet.c line 40-41(2)

u_short defined in line 107; never used

#### Defined macros

ACCESS_FILE defined in line 184; used 1 times

- in /usr/src/new/nntp/server/globals.c line 17

ACTIVE_FILE defined in line 183; used 3 times

- in /usr/src/new/nntp/server/globals.c line 16
- in /usr/src/new/nntp/support/mkgrdates.c line 74-77(2)

DBM defined in line 63; used 9 times

- in line 17, 62
- in /usr/src/new/nntp/server/common.h line 51
- in /usr/src/new/nntp/server/misc.c line 89, 109-113(3), 142, 169

DOMAIN defined in line 153; used 2 times

- in /usr/src/new/nntp/inews/inews.c line 219, 232

FCNTL defined in line 101; used 1 times

- in /usr/src/new/nntp/server/common.h line 42

GHNAME defined in line 90; used 1 times

- in /usr/src/new/nntp/inews/uname.c line 34

HISTORY_FILE defined in line 185; used 3 times

- in /usr/src/new/nntp/server/globals.c line 18
- in /usr/src/new/nntp/server/misc.c line 556
- in /usr/src/new/nntp/server/newnews.c line 136

INEWS defined in line 187; used 1 times

- in /usr/src/new/nntp/server/globals.c line 20

IPPORT_NNTP defined in line 109; used 3 times

- in /usr/src/new/nntp/common/clientlib.c line 199
- in /usr/src/new/nntp/server/main.c line 2
- in /usr/src/new/nntp/server/netaux.c line 121

LOG defined in line 58; used 27 times

- in /usr/src/new/nntp/server/access.c line 44, 86, 94, 128
- in /usr/src/new/nntp/server/access_dnet.c line 58
- in /usr/src/new/nntp/server/ahbs.c line 63
- in /usr/src/new/nntp/server/common.h line 129
- in /usr/src/new/nntp/server/globals.c line 39
- in /usr/src/new/nntp/server/group.c line 67, 85
- in /usr/src/new/nntp/server/ihave.c line 7, 37, 54
- in /usr/src/new/nntp/server/misc.c line 329
- in /usr/src/new/nntp/server/newnews.c line 8, 51, 217
- in /usr/src/new/nntp/server/post.c line 23, 49
- in /usr/src/new/nntp/server/serve.c line 17, 84, 137, 223, 242, 308
- in /usr/src/new/nntp/server/spawn.c line 113, 248

MAX_ARTICLES defined in line 194; used 1 times

- in /usr/src/new/nntp/server/globals.c line 32

NDBM defined in line 15; used 2 times

- in /usr/src/new/nntp/server/common.h line 58
- in /usr/src/new/nntp/server/misc.c line 88

NDIR defined in line 102; used 2 times

- in /usr/src/new/nntp/server/common.h line 36-38(2)

NGDATE_FILE defined in line 177; used 4 times

- in /usr/src/new/nntp/server/globals.c line 19
- in /usr/src/new/nntp/support/mkgrdates.c line 92-95(2), 131

POSTER defined in line 167; used 8 times

- in /usr/src/new/nntp/server/post.c line 30-35(3)
- in /usr/src/new/nntp/server/serve.c line 81, 147-148(2)
- in /usr/src/new/nntp/server/spawn.c line 123, 146

READINTVL defined in line 195; used 3 times

- in /usr/src/new/nntp/server/netaux.c line 194-199(3)

RNEWS defined in line 188; used 1 times

- in /usr/src/new/nntp/server/globals.c line 21

SERVER_FILE defined in line 161; used 2 times

- in /usr/src/new/nntp/inews/inews.c line 62-66(2)

SPOOLDIR defined in line 186; used 2 times

- in /usr/src/new/nntp/server/globals.c line 15
- in /usr/src/new/nntp/support/mkgrdates.c line 169

STAT_FILE defined in line 176; used 4 times

- in /usr/src/new/nntp/support/mkgrdates.c line 67, 133-135(2), 143

SUBNET defined in line 80; used 3 times

- in /usr/src/new/nntp/server/access_inet.c line 45, 64
- in /usr/src/new/nntp/server/subnet.c line 7

SYSLOG defined in line 55; used 39 times

- in line 57
- in /usr/src/new/nntp/server/access.c line 91, 116, 154
- in /usr/src/new/nntp/server/access_inet.c line 48
- in /usr/src/new/nntp/server/active.c line 51, 58, 67, 76, 92
- in /usr/src/new/nntp/server/common.h line 20
- in /usr/src/new/nntp/server/list.c line 31
- in /usr/src/new/nntp/server/main.c line 37-41(2), 61, 80, 93
- in /usr/src/new/nntp/server/misc.c line 126, 145, 157, 180, 190, 205
- in /usr/src/new/nntp/server/netaux.c line 106, 131, 140, 207
- in /usr/src/new/nntp/server/newgroups.c line 36
- in /usr/src/new/nntp/server/newnews.c line 141, 411
- in /usr/src/new/nntp/server/post.c line 34
- in /usr/src/new/nntp/server/serve.c line 107-111(2)
- in /usr/src/new/nntp/server/spawn.c line 112, 130, 178, 196, 216, 222

TIMEOUT defined in line 128; used 8 times

- in /usr/src/new/nntp/server/serve.c line 90, 193-199(3), 233-234(2), 295, 305

USGHIST defined in line 69; used 7 times

- in line 21, 68
- in /usr/src/new/nntp/server/misc.c line 90, 105-108(2), 123, 141

XFER_TIMEOUT defined in line 140; used 9 times

- in /usr/src/new/nntp/server/spawn.c line 11, 53, 77-84(3), 103, 232, 238, 245

XHDR defined in line 75; used 3 times

- in /usr/src/new/nntp/server/serve.c line 45
- in /usr/src/new/nntp/server/xhdr.c line 7, 161

index defined in line 103; used 59 times

- in /usr/src/new/nntp/common/clientlib.c line 64, 83, 113-117(2), 450-457(3)
- in /usr/src/new/nntp/inews/inews.c line 159, 185, 208, 215, 223
- in /usr/src/new/nntp/inews/uname.c line 57
- in /usr/src/new/nntp/server/access.c line 161-163(2)
- in /usr/src/new/nntp/server/active.c line 104
- in /usr/src/new/nntp/server/group.c line 39, 71, 94
- in /usr/src/new/nntp/server/list.c line 41
- in /usr/src/new/nntp/server/misc.c line 199-203(3), 214-217(2), 282-285(2), 341, 350, 368, 378, 413-417(2), 504, 566
- in /usr/src/new/nntp/server/newgroups.c line 86-88(2), 97
- in /usr/src/new/nntp/server/newnews.c line 182-185(2), 340, 422-425(2), 450, 483
- in /usr/src/new/nntp/server/ngmatch.c line 44
- in /usr/src/new/nntp/server/serve.c line 176, 203-207(2)
- in /usr/src/new/nntp/server/spawn.c line 87-89(2), 191
- in /usr/src/new/nntp/server/xhdr.c line 100, 149-152(2)
- in /usr/src/new/nntp/support/mkgrdates.c line 51, 104, 162-166(2)

rindex defined in line 104; never used

#### Usage of this include

conf.h used 10 times

- in /usr/src/new/nntp/common/clientlib.c line 14
- in /usr/src/new/nntp/inews/inews.c line 20
- in /usr/src/new/nntp/inews/uname.c line 28
- in /usr/src/new/nntp/server/common.h line 18
- in /usr/src/new/nntp/server/fakesyslog.c line 18
- in /usr/src/new/nntp/server/misc.c line 5
- in /usr/src/new/nntp/server/spawn.c line 5
- in /usr/src/new/nntp/server/subnet.c line 5
- in /usr/src/new/nntp/server/time.c line 10
- in /usr/src/new/nntp/support/mkgrdates.c line 33

Last modified: 1988-07-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1312 |