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