xref: /illumos-gate/usr/src/cmd/bnu/parms.h (revision 8f4696068ddd989ae2e241a1bfc977d29bb00c84)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1992 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 /* go through this carefully, configuring for your site */
31 
32 /* If running SVR4, #define all of ATTSVR4, ATTSVR3, and ATTSV */
33 #define ATTSVR4	/* System V Release 4 */
34 
35 /* If running SVR3, #define both ATTSVR3 and ATTSV */
36 #define ATTSVR3	/* System V Release 3 */
37 
38 /* One of the following five lines should not be commented out.
39  * The other four should be unless you are running a unique hybrid.
40  * XXX - V7 and V8 are very unlikely to still work.
41  */
42 
43 #define	ATTSV	/* System III or System V */
44 /* #define	V7	*/	/* Version 7 systems (32V, Berkeley 4BSD, 4.1BSD) */
45 /* #define	BSD4_3	*/	/* Berkeley 4.3BSD */
46 /* #define	BSD4_2	*/	/* Berkeley 4.2BSD */
47 /* #define	V8	*/	/* Research Eighth Edition */
48 
49 /* Owner of setud files running on behalf of uucp.  Needed in case
50  * root runs uucp and euid is not honored by kernel.
51  * GID is needed for some chown() calls.
52  * Also used if guinfo() cannot find the current users ID in the
53  * password file.
54  */
55 #define UUCPUID		5	/* */
56 #define UUCPGID		5	/* */
57 
58 /* define ATTSVKILL if your system has a kill(2) that accepts kill(0, pid)
59  * as a test for killability.  If ATTSV or BSD4_2 is defined this will
60  * automatically be defined anyway.
61  */
62 /* #define ATTSVKILL	*/
63 
64 /* define ATTSVTTY if your system has a System V (or System III)-style tty
65  * driver ("termio").  If ATTSV is defined this will automatically be defined
66  * anyway.
67  */
68 #define ATTSVTTY	/* */
69 
70 /* define BSDINETD if you are using /etc/inetd with 4.2bsd.  If BSD4_3 is
71  * defined this will automatically be defined anyway.
72  */
73 #define BSDINETD	/**/
74 
75 /*
76  * the next two lines control high resolution sleeps, called naps.
77  *
78  * many UNIX versions have no nap() system call; they want NONAP defined,
79  * in which case one is provided in the code.
80  *
81  * some sites use a fast timer that reads a number of clock ticks and naps
82  * for that interval; they want NONAP defined, and FASTTIMER defined as
83  * the name of the device, e.g., /dev/ft.
84  *
85  * some systems, including 4.2BSD and SVR4, can simulate the nap() function
86  * using the select() system call.
87  *
88  * repeating, NONAP should be disabled *only* if your standard library has a
89  * function called nap, or it can be simulated with select.
90  */
91 
92 
93 /* #define NONAP		*/	/* nominal case -- no nap() in the standard library */
94 /* #define FASTTIMER "/dev/ft"	*/	/* identify the device used for naps */
95 
96 /*
97  * we use ustat to decide whether there's enough space to receive a
98  * file.  if you're not ATTSV:
99  *
100  *	1) if you have the SunOS "statfs" system call (many systems with NFS
101  *	   that have NFS have it), you can use it instead of "ustat";
102  *
103  *	2) otherwise, you can use a setgid program to read the number of free
104  *	   blocks and free inodes directly off the disk.
105  *
106  * if you choose either course, do not define NOUSTAT; rather:
107  *
108  *	1) if you choose 1) above, define STATFS;
109  *
110  *	2) if you choose 2) above, define V7USTAT to be the name of the
111  *	   program.  be sure it accepts 2 args, major and minor device numbers,
112  *	   and returns two numbers, blocks and inodes, in "%d %d" format, or
113  *	   you'll never receive another file.
114  */
115 /* #define V7USTAT  "/usr/local/lib/ustat" */
116 /* #define STATFS  */	/* if you have "statfs" system call */
117 /* #define NOUSTAT */	/* define NOUSTAT if you don't have ustat */
118 
119 /* define GRPCHK if you want to restrict the ability to read */
120 /* Systems file stuff by way of the DEBUG flags based on a group id range */
121 /* ex: if (GRPCHK(getgid()) no_secrets(); */
122 #define GRPMIN	5	/* */
123 #define GRPMAX	5	/* */
124 #define GRPCHK(gid)	( gid >= GRPMIN && gid <= GRPMAX ? 1 : 0 )	/* */
125 /* #define GRPCHK(gid)	1 */	/* Systems info is not protected from DEBUG */
126 
127 /* definitions for the types of networks and dialers that are available */
128 /* used to depend on STANDALONE, but now done at runtime via Sysfiles	*/
129 /* #define DATAKIT */	/* define DATAKIT if datakit is available. */
130 /* #define UNET	*/	/* define UNET if you have 3com ethernet software */
131 #define TCP		/* TCP (bsd systems) */
132 /* #define SYTEK */	/* for sytek network */
133 
134 #if defined(ATTSVR3) || defined(ATTSVR4)
135 #define TLI		/* for AT&T Transport Layer Interface networks */
136 #define TLIS		/* for AT&T Transport Layer Interface networks */
137 			/* with streams module "tirdwr" */
138 #endif /* ATTSVR3 || ATTSVR4 */
139 
140 /* #define DIAL801 */	/* 801/212-103 auto dialers */
141 
142 /*
143  * Define protocols that are to be linked into uucico:
144  *
145  * The following table shows which protocols and networks work well
146  * together.  The g protocol works over noisy links.  The e protocol
147  * assumes that the underlying network provides an error free communications
148  * channel that transfers the data in sequence without duplication.  The
149  * d protocols makes the same assumptions as the e protocol, but in addition
150  * it does Datakit specific ioctl's.  The g protocol is always included in
151  * uucico.  To include the other protocols, 1) insure that the symbol from
152  * the Symbol column is defined in this file and 2) include the file from
153  * the File comlumn in the definition of PROTOCOLS in uucp.mk.
154  *
155  * Prot.
156  * Letter Symbol       File	Applicable Media
157  *
158  *   g	  none	       -	-
159  *   e	  E_PROTOCOL   eio.c	TCP, UNET, TLI, and DATAKIT.
160  *   d	  D_PROTOCOL   dio.c	DATAKIT
161  *   x	  X_PROTOCOL   xio.c	-
162  *
163  * The next six lines conditionally define the protocol symbols for d
164  * and e protocols based on the networks that were chosen above.  For the
165  * x protocol you must explicitly define X_PROTOCOL.
166  */
167 
168 #ifdef DATAKIT		/* Should include D protocol for Datakit. */
169 #define D_PROTOCOL
170 #endif /* DATAKIT */
171 
172 #if defined TCP || defined UNET || defined TLI || defined DATAKIT
173 #define E_PROTOCOL	/* Include e protocol. */
174 #endif	/* TCP || UNET || TLI || DATAKIT */
175 
176 /* #define X_PROTOCOL */ /* define X_PROTOCOL to use the xio protocol */
177 #define X_PROTOCOL /* aeh - to check compilation */
178 
179 /* #define F_PROTOCOL */ /* define F_PROTOCOL to use the fio protocol */
180 #define F_PROTOCOL /* aeh - to check compilation */
181 
182 #define MAXCALLTRIES	2	/* maximum call attempts per Systems file line */
183 
184 /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
185 /* Systems file and Devices file allow Any */
186 #define DEFAULT_BAUDRATE "9600"	/* */
187 
188 /*define permission modes for the device */
189 #define M_DEVICEMODE (mode_t) 0600	/* MASTER device mode */
190 #define S_DEVICEMODE (mode_t) 0600	/* SLAVE device mode */
191 #define R_DEVICEMODE (mode_t) 0600	/* default mode to restore */
192 
193 /* NO_MODEM_CTRL - define this if you have very old hardware
194  * that does not know how to correctly handle modem control
195  * Some old pdp/11 hardware such as dk, dl
196  * If you define this, and have DH devices for direct lines,
197  * the ports will often hang and be unusable.
198 */
199 /*#define NO_MODEM_CTRL */		/* */
200 
201 
202 /* UUSTAT_TBL - this is the maximum number of machines that
203  * status may be needed at any instant.
204  * If you are not concerned with memory for a seldom used program,
205  * make it very large.
206  * This number is also used in uusched for its machine table -- it has
207  * the same properties as the one in uustat.
208  */
209 
210 #define UUSTAT_TBL 1000		/* big machine with lots of traffic */
211 /* #define UUSTAT_TBL 200 */
212 
213 /* define UNAME if uname() should be used to get uucpname
214  * This will be defined automatically if ATTSV is defined
215  */
216 /* #define UNAME */
217 
218 /* initial wait time after failure before retry */
219 #define RETRYTIME 300		/* 5 minutes */
220 /* MAXRETRYTIME is for exponential backoff  limit.
221  * NOTE - this should not be 24 hours so that
222  * retry is not always at the same time each day
223  */
224 #define MAXRETRYTIME 82800	/* 23 hours */
225 #define ASSERT_RETRYTIME 86400	/* retry time for ASSERT errors */
226 
227 /*  This is the path that will be used for uuxqt command executions */
228 #define PATH	"PATH=/usr/bin " /* */
229 
230 /*  This is the set of default commands that can be executed */
231 /*  if non is given for the system name in PERMISSIONS file */
232 /*  It is a colon separated list as in PERMISSIONS file */
233 #define DEFAULTCMDS	"rmail"	/* standard default command list */
234 
235 /* define HZ to be the number of clock ticks per second */
236 /* #define HZ 60 */ /* not needed for ATTSV or above */
237 
238 /*
239  * put in local uucp name of this machine if there is no "/etc/whoami"
240  * and no uname() (this is a last resort)
241  */
242 /* #define MYNAME		"kilroy" */	/* */
243 
244 /* define NOSTRANGERS if you want to reject calls from systems that
245  * are not in your Systems file.   If defined, NOSTRANGERS should be the name
246  * of the program to execute when such a system dials in.  The argument
247  * to said program will be the name of said system.  Typically this is a shell
248  * procedure that sends mail to the uucp administrator informing them of an
249  * attempt to communicate by an unknown system.
250  * NOTE - if this is defined, it can be overridden by the administrator
251  * by making the command non-executable.  (It can be turned on and off
252  * by changing the mode of the command.)
253  */
254 #define NOSTRANGERS	"/etc/uucp/remote.unknown"	/* */
255 
256 /* define LIMITS to be the name of a file which contains information
257  * about the number of simultaneous uucicos,uuxqts, and uuscheds
258  * that are allowed to run. If it is not defined, then there may be
259  * "many" uucicos, uuxqts, and uuscheds running.
260  */
261 #define LIMITS		"/etc/uucp/Limits"		/* */
262 
263 /* define USRSPOOLLOCKS if you like your lock files in /var/spool/locks
264  * be sure other programs such as 'cu' and 'ct' know about this
265  *
266  * WARNING: if you do not define USRSPOOLLOCKS, then $LOCK in
267  * uudemon.cleanup must be changed.
268  */
269 #define USRSPOOLLOCKS  /* define to use /var/spool/locks for LCK files */
270 
271 /* define PKSPEEDUP if you want to try the recommended speedup in pkcget.
272  * this entails sleeping between reads at low baud rates.
273  */
274 #define PKSPEEDUP	/* */
275