|
|
1.1 root 1: /*
2: * This software is Copyright (c) 1986 by Rick Adams.
3: *
4: * Permission is hereby granted to copy, reproduce, redistribute or
5: * otherwise use this software as long as: there is no monetary
6: * profit gained specifically from the use or reproduction or this
7: * software, it is not sold, rented, traded or otherwise marketed, and
8: * this copyright notice is included prominently in any copy
9: * made.
10: *
11: * The author make no claims as to the fitness or correctness of
12: * this software for any use whatsoever, and it is provided as is.
13: * Any use of this software is at the user's own risk.
14: *
15: */
16:
17: /* @(#)defs.dist 2.59 10/15/87 */
18:
19: /*
20: * defs.h - defines for news-related programs.
21: *
22: * If you remove any lines here or in your Makefile, make the change
23: * to localize.sh so you won't have to redo it for each news release.
24: *
25: * If TMAIL is undefined, the -M option will be disabled.
26: *
27: * By convention, the version of the software you are running is taken
28: * to be news_version below.
29: */
30:
31: #define DAYS (60L*60L*24L)
32: #define WEEKS (7*DAYS)
33: /* Things that very well may require local configuration */
34: #ifndef HOME
35: #define ROOTID 10 /* uid of person allowed to cancel anything */
36: #endif
37: #define N_UMASK 000 /* mask for umask call, 022 for secure system */
38: #define DFLTEXP 2*WEEKS /* default no. of seconds to expire in */
39: #define HISTEXP 4*WEEKS /* default no. of seconds to forget in */
40: #define DFLTSUB "general,all.announce" /* default subscription list */
41: #define TMAIL "/usr/ucb/Mail" /* Mail program that understands -T */
42: #define ADMSUB "general,all.announce" /* Mandatory subscription list */
43: #define PAGE "/usr/ucb/more" /* Default pager */
44: #define NOTIFY "usenet" /* Tell him about certain ctl messages */
45: /* Default xmit command - remove -z if */
46: #define DFTXMIT "uux - -r -z %s!rnews < %s" /* your uux can't do it */
47: #define UXMIT "uux -r -z -c %s!rnews '<' %s" /* If uux -c is ok */
48: #define DFTEDITOR "vi" /* Default editor, see also postnews. */
49: /* #define UUPROG "euuname" /* omit for uuname, put in LIBDIR */
50: #define MANUALLY /* Don't execute rmgroups, just notify. */
51: /* #define NONEWGROUPS /* Don't create new groups, just notify.*/
52: /* #define SPOOLNEWS /* Spool incoming rnews, don't process */
53: /* #define SPOOLINEWS /* Spool local inews, don't process */
54: /* #define LOCALNAME /* There is no full name database. */
55: /* #define INTERNET /* Internet mail works locally */
56: #define MYDOMAIN ".UUCP" /* Local domain */
57: /* #define CHEAP /* don't chown files to news */
58: /* #define OLD /* Add extra headers for old neighbors */
59: /* #define UNAME /* If uname call returns your nodename */
60: /* #define GHNAME /* If gethostname call is available. */
61: /* #define UUNAME "/etc/uucpname" /* If your nodename is stored in a file */
62: #define V7MAIL /* Local mail format is V7 ("From ") */
63: #define SORTACTIVE /* if you want news presented in the order of the .newsrc */
64: #define ZAPNOTES /* if you want old style notes headers moved into the headers */
65: #define DIGPAGE /* allow digestifying in vnews */
66: /* #define DOXREFS /* Generate xref line for rn to use */
67: /* #define MULTICAST /* If you want to be able to multicast news */
68: /* #define BSD4_2 /* If you are running 4.2 or 4.3 BSD */
69: /* #define BSD2_10 /* If you are running 2.10 BSD */
70: /* #define LOCKF /* If you have the lockf() sys call */
71: /* #define DOGETUSER /* Always do 'getuser' so can't fake name */
72: /* #define LOGDIR /* use the 'logdir' call on path lookups */
73: /* #define MKDIRSUB /* your system has mkdir as a syscall */
74: /* #define READDIR /* your system has readdir() in libc */
75: /* #define ALWAYSALIAS /* temporary kludge for conversion */
76: /* #define SENDMAIL "/usr/lib/sendmail" /* command line to run "sendmail" if you have it */
77: /* #define MMDF "/usr/mmdf/submit" /* command line to run mmdf if you have it */
78: #define MYORG "Frobozz Inc., St. Louis" /* My organization. Please */
79: /* include your city (and state, and */
80: /* country, if not obvious) in MYORG, */
81: /* and please keep it short. */
82: /* #define HIDDENNET "frooz" /* if you have a local network and want */
83: /* The mail address to look like it came */
84: /* from one machine */
85: /* NOTE: The following two macros replace the use of HIDDENNET */
86: /* #define GENERICPATH "frooz" /* If you are using a shared USENET/UUCP node */
87: /* #define GENERICFROM "Frobozz.COM" /* If you want generic From:-addresses */
88: /* #define NICENESS 4 /* does a nice(NICENESS) in rnews */
89: /* #define FASCIST "all,!all.all" /* only permit posting to certain groups */
90: /* see installation guide for details */
91: /* #define SMALL_ADDRESS_SPACE /* If your machine can't address > 32767 */
92: /* #define ORGDISTRIB "froozum" /* For organization wide control message handling */
93:
94: /* Things you might want to change */
95: #define NEWSRC ".newsrc" /* name of .newsrc file (in home dir) */
96: #define LINES 512 /* maximum no. of lines in .newsrc */
97: #define NEGCHAR '!' /* newsgroup negation character */
98: #define DEADTIME 45 /* no. of seconds to wait on deadlock */
99: #define FMETA '%' /* file meta-character for c option */
100: #if defined(pdp11) || defined(SMALL_ADDRESS_SPACE)
101: # define BUFLEN 128 /* standard buffer size */
102: #else
103: # define BUFLEN 256 /* standard buffer size */
104: #endif
105: #define LBUFLEN 1024 /* big buffer size */
106: #define SBUFLEN 32 /* small buffer size (for system names, etc) */
107: #define LNCNT 14 /* Articles with > LNCNT lines go through pager */
108:
109: /* Things you probably won't want to change */
110: #define PATHLEN 512 /* length of longest source string */
111: #define DATELEN 64 /* length of longest allowed date string */
112: #define NAMELEN 128 /* length of longest possible message ID */
113: #define SNLN 8 /* max significant characters in sysname */
114: #define PROTO 'A' /* old protocol name */
115: #define NETCHRS "!:@^%,"/* Punct. chars used for various networks */
116: #define TRUE 1 /* boolean true */
117: #define FALSE 0 /* boolean false */
118: #define PERHAPS 2 /* indeterminate boolean value */
119: #define NGDELIM ',' /* delimit character in news group line */
120:
121: /* for NNTP */
122: #ifdef SERVER
123: # include "NNTPSRC/common/response_codes.h"
124: # define SERVER_FILE "SERVERFILE"
125: #endif /* SERVER */
126:
127: #ifdef M_XENIX
128: #define index strchr
129: #define rindex strrchr
130: #define vfork fork
131: #endif /* M_XENIX */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.