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