xref: /illumos-gate/usr/src/cmd/ttymon/parms.h (revision 1fa2a664)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate  * with the License.
87c478bd9Sstevel@tonic-gate  *
97c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate  * and limitations under the License.
137c478bd9Sstevel@tonic-gate  *
147c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate  *
207c478bd9Sstevel@tonic-gate  * CDDL HEADER END
217c478bd9Sstevel@tonic-gate  */
22*1fa2a664SJoshua M. Clulow /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23*1fa2a664SJoshua M. Clulow /*	  All Rights Reserved */
247c478bd9Sstevel@tonic-gate 
257c478bd9Sstevel@tonic-gate 
26*1fa2a664SJoshua M. Clulow #ifndef _PARMS_H
27*1fa2a664SJoshua M. Clulow #define _PARMS_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate /* If running SVR3, #define both ATTSVR3 and ATTSV */
307c478bd9Sstevel@tonic-gate #define ATTSVR3	/* System V Release 3 */
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate /* One of the following four lines should not be commented out.
337c478bd9Sstevel@tonic-gate  * The other three should be unless you are running a unique hybrid.
347c478bd9Sstevel@tonic-gate  */
357c478bd9Sstevel@tonic-gate 
367c478bd9Sstevel@tonic-gate #define	ATTSV	/* System III or System V */
377c478bd9Sstevel@tonic-gate /* #define	V7 */	/* Version 7 systems (32V, Berkeley 4BSD, 4.1BSD) */
387c478bd9Sstevel@tonic-gate /* #define	BSD4_2 */	/* Berkeley 4.2BSD */
397c478bd9Sstevel@tonic-gate /* #define	V8 */	/* Research Eighth Edition */
407c478bd9Sstevel@tonic-gate 
417c478bd9Sstevel@tonic-gate /* Owner of setud files running on behalf of uucp.  Needed in case
427c478bd9Sstevel@tonic-gate  * root runs uucp and euid is not honored by kernel.
437c478bd9Sstevel@tonic-gate  * GID is needed for some chown() calls.
447c478bd9Sstevel@tonic-gate  * Also used if guinfo() cannot find the current users ID in the
457c478bd9Sstevel@tonic-gate  * password file.
467c478bd9Sstevel@tonic-gate  */
477c478bd9Sstevel@tonic-gate #define UUCPUID		(uid_t) 5	/* */
487c478bd9Sstevel@tonic-gate #define UUCPGID		(gid_t) 5	/* */
497c478bd9Sstevel@tonic-gate 
507c478bd9Sstevel@tonic-gate /* define ATTSVKILL if your system has a kill(2) that accepts kill(0, pid)
517c478bd9Sstevel@tonic-gate  * as a test for killability.  If ATTSV is defined this will automatically
527c478bd9Sstevel@tonic-gate  * be defined anyway.
537c478bd9Sstevel@tonic-gate  */
547c478bd9Sstevel@tonic-gate #define ATTSVKILL	/* */
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate /*
577c478bd9Sstevel@tonic-gate  * the next two lines control high resolution sleeps, called naps.
587c478bd9Sstevel@tonic-gate  *
597c478bd9Sstevel@tonic-gate  * most UNIX versions have no nap() system call; they want NONAP defined,
607c478bd9Sstevel@tonic-gate  * in which case one is provided in the code.  this includes all standard
617c478bd9Sstevel@tonic-gate  * versions of UNIX.
627c478bd9Sstevel@tonic-gate  *
637c478bd9Sstevel@tonic-gate  * some sites use a fast timer that reads a number of clock ticks and naps
647c478bd9Sstevel@tonic-gate  * for that interval; they want NONAP defined, and FASTTIMER defined as
657c478bd9Sstevel@tonic-gate  * the name of the device, e.g., /dev/ft.
667c478bd9Sstevel@tonic-gate  *
677c478bd9Sstevel@tonic-gate  * repeating, NONAP should be disabled *only* if your standard library has a
687c478bd9Sstevel@tonic-gate  * function called nap.
697c478bd9Sstevel@tonic-gate  */
707c478bd9Sstevel@tonic-gate 
717c478bd9Sstevel@tonic-gate 
727c478bd9Sstevel@tonic-gate #define NONAP	/* nominal case -- no nap() in the standard library */
737c478bd9Sstevel@tonic-gate /* #define FASTTIMER "/dev/ft" */   /* identify the device used for naps */
747c478bd9Sstevel@tonic-gate 
757c478bd9Sstevel@tonic-gate /*
767c478bd9Sstevel@tonic-gate  * we use ustat to decide whether there's enough space to receive a
777c478bd9Sstevel@tonic-gate  * file.  if you're not ATTSV, you can use a setgid program to read the
787c478bd9Sstevel@tonic-gate  * number of free blocks and free inodes directly off the disk.  if you
797c478bd9Sstevel@tonic-gate  * choose this course, do not define NOUSTAT; rather, define V7USTAT to
807c478bd9Sstevel@tonic-gate  * be the name of that program.  be sure it accepts 2 args, major and minor
817c478bd9Sstevel@tonic-gate  * device numbers, and returns two numbers, blocks and inodes, in
827c478bd9Sstevel@tonic-gate  * "%d %d" format, or you'll never receive another file.
837c478bd9Sstevel@tonic-gate  */
847c478bd9Sstevel@tonic-gate /* #define V7USTAT  "/usr/local/lib/ustat" */
857c478bd9Sstevel@tonic-gate /* #define NOUSTAT   */ /* define NOUSTAT if you don't have ustat */
867c478bd9Sstevel@tonic-gate 
877c478bd9Sstevel@tonic-gate /* define GRPCHK if you want to restrict the ability to read */
887c478bd9Sstevel@tonic-gate /* Systems file stuff by way of the DEBUG flags based on a group id range */
897c478bd9Sstevel@tonic-gate /* ex: if (GRPCHK(getgid()) no_secrets(); */
907c478bd9Sstevel@tonic-gate #define GRPMIN	(gid_t) 2	/* */
917c478bd9Sstevel@tonic-gate #define GRPMAX	(gid_t) 10	/* */
927c478bd9Sstevel@tonic-gate #define GRPCHK(gid)	( gid >= GRPMIN && gid <= GRPMAX ? 1 : 0 )	/* */
937c478bd9Sstevel@tonic-gate /* #define GRPCHK(gid)	1 */	/* Systems info is not protected from DEBUG */
947c478bd9Sstevel@tonic-gate 
957c478bd9Sstevel@tonic-gate /* definitions for the types of networks and dialers that are available */
967c478bd9Sstevel@tonic-gate /* used to depend on STANDALONE, but now done at runtime via Sysfiles	*/
977c478bd9Sstevel@tonic-gate #define DATAKIT		/* define DATAKIT if datakit is available. */
987c478bd9Sstevel@tonic-gate /* #define UNET */	/* define UNET if you have 3com ethernet software */
997c478bd9Sstevel@tonic-gate /* #define TCP	*/	/* TCP (bsd systems) */
1007c478bd9Sstevel@tonic-gate /* #define SYTEK*/	/* for sytek network */
1017c478bd9Sstevel@tonic-gate 
1027c478bd9Sstevel@tonic-gate #ifdef ATTSVR3
1037c478bd9Sstevel@tonic-gate #define TLI		/* for AT&T Transport Layer Interface networks */
1047c478bd9Sstevel@tonic-gate #define TLIS		/* for AT&T Transport Layer Interface networks */
1057c478bd9Sstevel@tonic-gate 			/* with streams module "tirdwr" */
1067c478bd9Sstevel@tonic-gate #endif /* ATTSVR3 */
1077c478bd9Sstevel@tonic-gate 
1087c478bd9Sstevel@tonic-gate #define DIAL801	/* 801/212-103 auto dialers */
1097c478bd9Sstevel@tonic-gate 
1107c478bd9Sstevel@tonic-gate /* define DUMB_DN if your dn driver (801 acu) cannot handle '=' */
1117c478bd9Sstevel@tonic-gate /* #define DUMB_DN */
1127c478bd9Sstevel@tonic-gate 
1137c478bd9Sstevel@tonic-gate /*
1147c478bd9Sstevel@tonic-gate  * Define protocols that are to be linked into uucico:
1157c478bd9Sstevel@tonic-gate  *
1167c478bd9Sstevel@tonic-gate  * The following table shows which protocols and networks work well
1177c478bd9Sstevel@tonic-gate  * together.  The g protocol works over noisy links.  The e protocol
1187c478bd9Sstevel@tonic-gate  * assumes that the underlying network provides an error free communications
1197c478bd9Sstevel@tonic-gate  * channel that transfers the data in sequence without duplication.  The
1207c478bd9Sstevel@tonic-gate  * d protocols makes the same assumptions as the e protocol, but in addition
1217c478bd9Sstevel@tonic-gate  * it does Datakit specific ioctl's.  The g protocol is always included in
1227c478bd9Sstevel@tonic-gate  * uucico.  To include the other protocols, 1) insure that the symbol from
1237c478bd9Sstevel@tonic-gate  * the Symbol column is defined in this file and 2) include the file from
1247c478bd9Sstevel@tonic-gate  * the File comlumn in the definition of PROTOCOLS in uucp.mk.
1257c478bd9Sstevel@tonic-gate  *
1267c478bd9Sstevel@tonic-gate  * Prot.
1277c478bd9Sstevel@tonic-gate  * Letter Symbol       File	Applicable Media
1287c478bd9Sstevel@tonic-gate  *
1297c478bd9Sstevel@tonic-gate  *   g	  none	       -	-
1307c478bd9Sstevel@tonic-gate  *   e	  E_PROTOCOL   eio.c	TCP, UNET, TLI, and DATAKIT.
1317c478bd9Sstevel@tonic-gate  *   d	  D_PROTOCOL   dio.c	DATAKIT
1327c478bd9Sstevel@tonic-gate  *   x	  X_PROTOCOL   xio.c	-
1337c478bd9Sstevel@tonic-gate  *
1347c478bd9Sstevel@tonic-gate  * The next six lines conditionally define the protocol symbols for d
1357c478bd9Sstevel@tonic-gate  * and e protocols based on the networks that were chosen above.  For the
1367c478bd9Sstevel@tonic-gate  * x protocol you must explicitly define X_PROTOCOL.
1377c478bd9Sstevel@tonic-gate  */
1387c478bd9Sstevel@tonic-gate 
1397c478bd9Sstevel@tonic-gate #ifdef DATAKIT		/* Should include D protocol for Datakit. */
1407c478bd9Sstevel@tonic-gate #define D_PROTOCOL
1417c478bd9Sstevel@tonic-gate #endif /* DATAKIT */
1427c478bd9Sstevel@tonic-gate 
1437c478bd9Sstevel@tonic-gate #if defined TCP || defined UNET || defined TLI || defined DATAKIT
1447c478bd9Sstevel@tonic-gate #define E_PROTOCOL	/* Include e protocol. */
1457c478bd9Sstevel@tonic-gate #endif	/* TCP || UNET || TLI || DATAKIT */
1467c478bd9Sstevel@tonic-gate 
1477c478bd9Sstevel@tonic-gate /* #define X_PROTOCOL */ /* define X_PROTOCOL to use the xio protocol */
1487c478bd9Sstevel@tonic-gate #define X_PROTOCOL /* aeh - to check compilation */
1497c478bd9Sstevel@tonic-gate 
1507c478bd9Sstevel@tonic-gate #define MAXCALLTRIES	2	/* maximum call attempts per Systems file line */
1517c478bd9Sstevel@tonic-gate 
1527c478bd9Sstevel@tonic-gate /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
1537c478bd9Sstevel@tonic-gate /* Systems file and Devices file allow Any */
1547c478bd9Sstevel@tonic-gate #define DEFAULT_BAUDRATE "9600"	/* */
1557c478bd9Sstevel@tonic-gate 
1567c478bd9Sstevel@tonic-gate /*define permission modes for the device */
157*1fa2a664SJoshua M. Clulow #define M_DEVICEMODE (mode_t) 0600	/* manager device mode */
158*1fa2a664SJoshua M. Clulow #define S_DEVICEMODE (mode_t) 0600	/* subsidiary device mode */
1597c478bd9Sstevel@tonic-gate #define R_DEVICEMODE (mode_t) 0600	/* default mode to restore */
1607c478bd9Sstevel@tonic-gate 
1617c478bd9Sstevel@tonic-gate /* NO_MODEM_CTRL - define this if you have very old hardware
1627c478bd9Sstevel@tonic-gate  * that does not know how to correctly handle modem control
1637c478bd9Sstevel@tonic-gate  * Some old pdp/11 hardware such as dk, dl
1647c478bd9Sstevel@tonic-gate  * If you define this, and have DH devices for direct lines,
1657c478bd9Sstevel@tonic-gate  * the ports will often hang and be unusable.
1667c478bd9Sstevel@tonic-gate */
1677c478bd9Sstevel@tonic-gate /*#define NO_MODEM_CTRL	*/
1687c478bd9Sstevel@tonic-gate 
1697c478bd9Sstevel@tonic-gate 
1707c478bd9Sstevel@tonic-gate /* UUSTAT_TBL - this is the maximum number of machines that
1717c478bd9Sstevel@tonic-gate  * status may be needed at any instant.
1727c478bd9Sstevel@tonic-gate  * If you are not concerned with memory for a seldom used program,
1737c478bd9Sstevel@tonic-gate  * make it very large.
1747c478bd9Sstevel@tonic-gate  * This number is also used in uusched for its machine table -- it has
1757c478bd9Sstevel@tonic-gate  * the same properties as the one in uustat.
1767c478bd9Sstevel@tonic-gate  */
1777c478bd9Sstevel@tonic-gate 
1787c478bd9Sstevel@tonic-gate /* #define UUSTAT_TBL 1000 */		/* big machine with lots of traffic */
1797c478bd9Sstevel@tonic-gate #define UUSTAT_TBL 200
1807c478bd9Sstevel@tonic-gate 
1817c478bd9Sstevel@tonic-gate /* define UNAME if uname() should be used to get uucpname
1827c478bd9Sstevel@tonic-gate  * This will be defined automatically if ATTSV is defined
1837c478bd9Sstevel@tonic-gate  */
1847c478bd9Sstevel@tonic-gate #define UNAME /*  */
1857c478bd9Sstevel@tonic-gate 
1867c478bd9Sstevel@tonic-gate /* initial wait time after failure before retry */
1877c478bd9Sstevel@tonic-gate #define RETRYTIME 300		/* 5 minutes */
1887c478bd9Sstevel@tonic-gate /* MAXRETRYTIME is for exponential backoff  limit.
1897c478bd9Sstevel@tonic-gate  * NOTE - this should not be 24 hours so that
1907c478bd9Sstevel@tonic-gate  * retry is not always at the same time each day
1917c478bd9Sstevel@tonic-gate  */
1927c478bd9Sstevel@tonic-gate #define MAXRETRYTIME 82800	/* 23 hours */
1937c478bd9Sstevel@tonic-gate #define ASSERT_RETRYTIME 86400	/* retry time for ASSERT errors */
1947c478bd9Sstevel@tonic-gate 
1957c478bd9Sstevel@tonic-gate /*  This is the path that will be used for uuxqt command executions */
1967c478bd9Sstevel@tonic-gate #define PATH	"PATH=/usr/bin " /* */
1977c478bd9Sstevel@tonic-gate 
1987c478bd9Sstevel@tonic-gate /*  This is the set of default commands that can be executed */
1997c478bd9Sstevel@tonic-gate /*  if non is given for the system name in PERMISSIONS file */
2007c478bd9Sstevel@tonic-gate /*  It is a colon separated list as in PERMISSIONS file */
2017c478bd9Sstevel@tonic-gate #define DEFAULTCMDS	"rmail"	/* standard default command list */
2027c478bd9Sstevel@tonic-gate 
2037c478bd9Sstevel@tonic-gate /* define HZ to be the number of clock ticks per second */
2047c478bd9Sstevel@tonic-gate /* #define HZ 60 */ /* not needed for ATTSV or above */
2057c478bd9Sstevel@tonic-gate 
2067c478bd9Sstevel@tonic-gate /*
2077c478bd9Sstevel@tonic-gate  * put in local uucp name of this machine if there is no "/etc/whoami"
2087c478bd9Sstevel@tonic-gate  * and no uname() (this is a last resort)
2097c478bd9Sstevel@tonic-gate  */
2107c478bd9Sstevel@tonic-gate #define MYNAME		"kilroy"	/* */
2117c478bd9Sstevel@tonic-gate 
2127c478bd9Sstevel@tonic-gate /* define NOSTRANGERS if you want to reject calls from systems which
2137c478bd9Sstevel@tonic-gate  * are not in your Systems file.   If defined, NOSTRANGERS should be the name
2147c478bd9Sstevel@tonic-gate  * of the program to execute when such a system dials in.  The argument
2157c478bd9Sstevel@tonic-gate  * to said program will be the name of said system.  Typically this is a shell
2167c478bd9Sstevel@tonic-gate  * procedure that sends mail to the uucp administrator informing them of an
2177c478bd9Sstevel@tonic-gate  * attempt to communicate by an unknown system.
2187c478bd9Sstevel@tonic-gate  * NOTE - if this is defined, it can be overridden by the administrator
2197c478bd9Sstevel@tonic-gate  * by making the command non-executable.  (It can be turned on and off
2207c478bd9Sstevel@tonic-gate  * by changing the mode of the command.)
2217c478bd9Sstevel@tonic-gate  */
2227c478bd9Sstevel@tonic-gate #define NOSTRANGERS	"/usr/lib/uucp/remote.unknown"	/* */
2237c478bd9Sstevel@tonic-gate 
2247c478bd9Sstevel@tonic-gate /* define LIMITS to be the name of a file which contains information
2257c478bd9Sstevel@tonic-gate  * about the number of simultaneous uucicos,uuxqts, and uuscheds
2267c478bd9Sstevel@tonic-gate  * that are allowed to run. If it is not defined, then there may be
2277c478bd9Sstevel@tonic-gate  * "many" uucicos, uuxqts, and uuscheds running.
2287c478bd9Sstevel@tonic-gate  */
2297c478bd9Sstevel@tonic-gate #define LIMITS		"/etc/uucp/Limits"		/* */
2307c478bd9Sstevel@tonic-gate 
2317c478bd9Sstevel@tonic-gate /* define USRSPOOLLOCKS if you like your lock files in /var/spool/locks
2327c478bd9Sstevel@tonic-gate  * be sure other programs such as 'cu' and 'ct' know about this
2337c478bd9Sstevel@tonic-gate  *
234*1fa2a664SJoshua M. Clulow  * WARNING: if you do not define USRSPOOLLOCKS, then $LOCK in
2357c478bd9Sstevel@tonic-gate  * uudemon.cleanup must be changed.
2367c478bd9Sstevel@tonic-gate  */
2377c478bd9Sstevel@tonic-gate #define USRSPOOLLOCKS  /* define to use /var/spool/locks for LCK files */
2387c478bd9Sstevel@tonic-gate 
2397c478bd9Sstevel@tonic-gate /* define PKSPEEDUP if you want to try the recommended speedup in pkcget.
2407c478bd9Sstevel@tonic-gate  * this entails sleeping between reads at low baud rates.
2417c478bd9Sstevel@tonic-gate  */
2427c478bd9Sstevel@tonic-gate #define PKSPEEDUP	/* */
243*1fa2a664SJoshua M. Clulow 
244*1fa2a664SJoshua M. Clulow #endif /* !_PARMS_H */
245