parms.h (7c478bd9) parms.h (61961e0f)
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 *

--- 5 unchanged lines hidden (view full) ---

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 */
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 *

--- 5 unchanged lines hidden (view full) ---

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