|
|
1.1 root 1: /* %W% */
2: #ifndef lint
3: static char h_parms[] = "%W%";
4: #endif
5:
6: /* go through this carefully, configuring for your site */
7:
8: /* One of the following four lines should not be commented out.
9: * The other three should be unless you are running a unique hybrid.
10: */
11:
12: /* #define ATTSV /* System III or System V */
13: /* #define V7 /* Version 7 systems (32V, Berkeley 4BSD, 4.1BSD) */
14: /* #define BSD4_2 /* Berkeley 4.2BSD */
15: #define V8 /* Research some edition */
16:
17:
18: /* Owner of setud files running on behalf of uucp. Needed in case
19: * root runs uucp and euid is not honored by kernel.
20: * GID is needed for some chown() calls.
21: * Also used if guinfo() cannot find the current users ID in the
22: * password file.
23: */
24: #define UUCPUID 48 /* */
25: #define UUCPGID 1 /* */
26:
27: /* define ATTSVKILL if your system has a kill(2) that accepts kill(0, pid)
28: * as a test for killability. If ATTSV is defined this will automatically
29: * be defined anyway.
30: */
31: #define ATTSVKILL /* */
32:
33: /*
34: * the next two lines control high resolution sleeps, called naps.
35: *
36: * most UNIX versions have no nap() system call; they want NONAP defined,
37: * in which case one is provided in the code. this includes all standard
38: * versions of UNIX.
39: *
40: * some sites use a fast timer that reads a number of clock ticks and naps
41: * for that interval; they want NONAP defined, and FASTTIMER defined as
42: * the name of the device, e.g., /dev/ft.
43: *
44: * repeating, NONAP should be disabled *only* if your standard library has a
45: * function called nap.
46: */
47:
48:
49: /* #define NONAP /* nominal case -- no nap() in the standard library */
50: /* #define FASTTIMER "/dev/ft" /* identify the device used for naps */
51:
52: /*
53: * we use ustat to decide whether there's enough space to receive a
54: * file. if you're not ATTSV, you can use a setgid program to read the
55: * number of free blocks and free inodes directly off the disk. if you
56: * choose this course, do not define NOUSTAT; rather, define V7USTAT to
57: * be the name of that program. be sure it accepts 2 args, major and minor
58: * device numbers, and returns two numbers, blocks and inodes, in
59: * "%d %d" format, or you'll never receive another file.
60: */
61: /* #define V7USTAT "/usr/local/lib/ustat" /* */
62: #define NOUSTAT /* define NOUSTAT if you don't have ustat */
63:
64: /* define GRPCHK if you want to restrict the ability to read */
65: /* Systems file stuff by way of the DEBUG flags based on a group id range */
66: /* ex: if (GRPCHK(getgid()) no_secrets(); */
67: #define GRPMIN 2 /* */
68: #define GRPMAX 4 /* */
69: #define GRPCHK(gid) ( gid >= GRPMIN && gid <= GRPMAX ? 1 : 0 ) /* */
70: /* #define GRPCHK(gid) 1 /* Systems info is not protected from DEBUG */
71:
72: /*
73: * protocols
74: * some are specific to particular networks
75: */
76:
77: #define PROTO_D /* datakit block mode -- assumes datakit */
78: #define PROTO_E /* general block mode -- assumes error-free line */
79: #define PROTO_G /* ordinary phone line */
80: /* #define PROTO_X /* X25 */
81: /*
82: * types of networks
83: * ACUs are always assumed, stupid though that be
84: */
85:
86: /* #define DATAKIT /* define DATAKIT for plain (tdkdial) datakit */
87: #define CSERV /* define CSERV for connection server */
88: /* #define UNET /* define UNET for 3com ethernet */
89: /* #define TCP /* define TCP for TCP/IP */
90: /* #define SYTEK /* define SYTEK for sytek network */
91:
92: #define MAXCALLTRIES 2 /* maximum call attempts per Systems file line */
93:
94: /* #define DIAL801 /* 801/212-103 auto dialers */
95: /* #define X25 /* define X25 if you want to use the xio protocol */
96:
97: /* define DUMB_DN if your dn driver (801 acu) is too dumb to handle '=' */
98: /* #define DUMB_DN /* */
99:
100: /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
101: /* Systems file and Devices file allow Any */
102: #define DEFAULT_BAUDRATE "9600" /* */
103:
104: /* permission modes for the device uucico is calling the remote machine on */
105: #define DEVICEMODE 0600
106:
107: /* NO_MODEM_CTRL - define this if you have very old hardware
108: * that does not know how to correctly handle modem control
109: * Some old pdp/11 hardware such as dk, dl
110: * If you define this, and have DH devices for direct lines,
111: * the ports will often hang and be unusable.
112: */
113: /*#define NO_MODEM_CTRL /* */
114:
115:
116: /* UUSTAT_TBL - this is the maximum number of machines that
117: * status may be needed at any instant.
118: * If you are not concerned with memory for a seldom used program,
119: * make it very large.
120: * This number is also used in uusched for its machine table -- it has
121: * the same properties as the one in uustat.
122: */
123:
124: /* #define UUSTAT_TBL 1000 /* big machine with lots of traffic */
125: #define UUSTAT_TBL 200
126:
127: /* define UNAME if uname() should be used to get uucpname
128: * This will be defined automatically if ATTSV is defined
129: */
130: /* #define UNAME /* */
131:
132: /* initial wait time after failure before retry */
133: #define RETRYTIME 300 /* 5 minutes */
134: /* MAXRETRYTIME is for exponential backoff limit.
135: * NOTE - this should not be 24 hours so that
136: * retry is not always at the same time each day
137: */
138: #define MAXRETRYTIME 82800 /* 23 hours */
139: #define ASSERT_RETRYTIME 86400 /* retry time for ASSERT errors */
140:
141: /* This is the path that will be used for uuxqt command executions */
142: #define PATH "PATH=/bin:/usr/bin " /* */
143:
144: /* This is the set of default commands that can be executed */
145: /* if none is given for the system name in PERMISSIONS file */
146: /* It is a colon separated list as in PERMISSIONS file */
147: #define DEFAULTCMDS "rmail" /* standard default command list */
148:
149: /* define HZ to be the number of clock ticks per second */
150: #define HZ 60 /* not needed for ATTSV or above */
151:
152: /*
153: * put in local uucp name of this machine if there is no "/etc/whoami"
154: * and no uname() (this is a last resort)
155: */
156: #define MYNAME "greg" /* */
157:
158: /*
159: * define READDIR if there are useful readdir/opendir routines in the library
160: */
161:
162: #define READDIR 1 /* */
163:
164: /* define NOSTRANGERS if you want to reject calls from systems which
165: * are not in your Systems file. If defined, NOSTRANGERS should be the name
166: * of the program to execute when such a system dials in. The argument
167: * to said program will be the name of said system. Typically this is a shell
168: * procedure that sends mail to the uucp administrator informing them of an
169: * attempt to communicate by an unknown system.
170: * NOTE - if this is defined, it can be overridden by the administrator
171: * by making the command non-executable. (It can be turned on and off
172: * by changing the mode of the command.)
173: */
174: #define NOSTRANGERS "/usr/lib/uucp/remote.unknown" /* */
175:
176: /* define LMTUUXQT to be the name of a file which contains the number
177: * (in ascii) of simultaneous uuxqt's which you will permit. If it is
178: * not defined, there may be "many" uuxqt's running. 5 is reasonable number.
179: */
180: #define LMTUUXQT "/usr/lib/uucp/Maxuuxqts" /* */
181:
182: /* define LMTUUSCHED to be the name of a file which contains the number
183: * (in ascii) of simultaneous uusched's which you will permit. If it is
184: * not defined, there may be "many" uusched's running. 2 is reasonable number.
185: */
186: #define LMTUUSCHED "/usr/lib/uucp/Maxuuscheds" /* */
187:
188: /* define USRSPOOLLOCKS if you like your lock files in /usr/spool/locks
189: * be sure other programs such as 'cu' and 'ct' know about this
190: */
191: /* #define USRSPOOLLOCKS /* define to use /usr/spool/locks for LCK files */
192:
193: /* define ASCIILOCKS if you like your lock files to contain ascii pids.
194: * rather than binary representations. Rmemeber cu and ct and whatever
195: * else might lock devices need to understand this
196: */
197: #define ASCIILOCKS /* define for ascii lck pids */
198:
199: /* define PKSPEEDUP if you want to try the recommended speedup in pkcget.
200: * this entails sleeping between reads at low baud rates.
201: */
202: #define PKSPEEDUP /* */
203:
204: /*
205: * no vfork buggery, please
206: * see cpmv.c and gwd.c
207: */
208:
209: #define uidstat stat
210: #define uidxcp xcp
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.