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