1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*0Sstevel@tonic-gate * Use is subject to license terms. 25*0Sstevel@tonic-gate */ 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 28*0Sstevel@tonic-gate /* All Rights Reserved */ 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate 31*0Sstevel@tonic-gate /* Copyright (c) 1981 Regents of the University of California */ 32*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 33*0Sstevel@tonic-gate /* 34*0Sstevel@tonic-gate * Definitions of editor parameters and limits 35*0Sstevel@tonic-gate */ 36*0Sstevel@tonic-gate 37*0Sstevel@tonic-gate /* 38*0Sstevel@tonic-gate * Pathnames. 39*0Sstevel@tonic-gate */ 40*0Sstevel@tonic-gate #define EXRECOVER "/usr/lib/exrecover" 41*0Sstevel@tonic-gate #define EXPRESERVE "/usr/lib/expreserve" 42*0Sstevel@tonic-gate #define USRPRESERVE "/usr/preserve/" 43*0Sstevel@tonic-gate #define TMPDIR "/var/tmp" 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gate /* 46*0Sstevel@tonic-gate * If your system believes that tabs expand to a width other than 47*0Sstevel@tonic-gate * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8. 48*0Sstevel@tonic-gate */ 49*0Sstevel@tonic-gate #ifndef TABS 50*0Sstevel@tonic-gate #define TABS 8 51*0Sstevel@tonic-gate #endif 52*0Sstevel@tonic-gate 53*0Sstevel@tonic-gate /* 54*0Sstevel@tonic-gate * Maximums 55*0Sstevel@tonic-gate * 56*0Sstevel@tonic-gate * The definitions of LBSIZE and CRSIZE should be the same as BUFSIZE 57*0Sstevel@tonic-gate * Most other definitions are quite generous. 58*0Sstevel@tonic-gate */ 59*0Sstevel@tonic-gate 60*0Sstevel@tonic-gate #define LBSIZE BUFSIZE /* Line buffer size */ 61*0Sstevel@tonic-gate #define CRSIZE BUFSIZE /* Crypt block size */ 62*0Sstevel@tonic-gate 63*0Sstevel@tonic-gate #define ESIZE 1024 64*0Sstevel@tonic-gate #define FNSIZE PATH_MAX+1 /* Max file name size */ 65*0Sstevel@tonic-gate #define RHSSIZE 512 /* Size of rhs of substitute */ 66*0Sstevel@tonic-gate #define NBRA 9 /* Number of re \( \) pairs */ 67*0Sstevel@tonic-gate #define TAGSIZE 256 /* Tag length */ 68*0Sstevel@tonic-gate #define ONMSZ BUFSIZE /* Option name size */ 69*0Sstevel@tonic-gate #define GBSIZE 256 /* Buffer size */ 70*0Sstevel@tonic-gate #define UXBSIZE 128 /* Unix command buffer size */ 71*0Sstevel@tonic-gate #define VBSIZE 128 /* Partial line max size in visual */ 72*0Sstevel@tonic-gate #ifndef VMUNIX 73*0Sstevel@tonic-gate #define LBLKS 125 /* Line pointer blocks in temp file */ 74*0Sstevel@tonic-gate #define HBLKS 1 /* struct header fits in BUFSIZE*HBLKS */ 75*0Sstevel@tonic-gate #else 76*0Sstevel@tonic-gate #define LBLKS 4000 77*0Sstevel@tonic-gate #define HBLKS ((sizeof(struct header)+BUFSIZE-1)/BUFSIZE) 78*0Sstevel@tonic-gate #endif 79*0Sstevel@tonic-gate #define MAXDIRT 12 /* Max dirtcnt before sync tfile */ 80*0Sstevel@tonic-gate #define TCBUFSIZE 1024 /* Max entry size in termcap, see 81*0Sstevel@tonic-gate also termlib and termcap */ 82*0Sstevel@tonic-gate 83*0Sstevel@tonic-gate /* 84*0Sstevel@tonic-gate * Except on VMUNIX, these are a ridiculously small due to the 85*0Sstevel@tonic-gate * poor arglist processing implementation which fixes core 86*0Sstevel@tonic-gate * proportional to them. Argv (and hence NARGS) is really unnecessary, 87*0Sstevel@tonic-gate * and argument character space not needed except when 88*0Sstevel@tonic-gate * arguments exist. Argument lists should be saved before the "zero" 89*0Sstevel@tonic-gate * of the incore line information and could then 90*0Sstevel@tonic-gate * be reasonably large. 91*0Sstevel@tonic-gate */ 92*0Sstevel@tonic-gate #undef NCARGS 93*0Sstevel@tonic-gate #define NCARGS 5120 94*0Sstevel@tonic-gate #define NARGS (NCARGS/6) 95*0Sstevel@tonic-gate 96*0Sstevel@tonic-gate /* 97*0Sstevel@tonic-gate * If you have no terminals 98*0Sstevel@tonic-gate * which are larger than 24 * 80 you may well want to make TUBESIZE 99*0Sstevel@tonic-gate * smaller. TUBECOLS should stay at 160 since this defines the maximum 100*0Sstevel@tonic-gate * length of opening on hardcopies and allows two lines of open on 101*0Sstevel@tonic-gate * terminals like adm3's (glass tty's) where it switches to pseudo 102*0Sstevel@tonic-gate * hardcopy mode when a line gets longer than 80 characters. 103*0Sstevel@tonic-gate */ 104*0Sstevel@tonic-gate #define TUBELINES 107 /* Number of screen lines for visual */ 105*0Sstevel@tonic-gate #define TUBECOLS 500 /* Number of screen columns for visual */ 106*0Sstevel@tonic-gate #define TUBESIZE 54500 /* Maximum screen size for visual */ 107*0Sstevel@tonic-gate 108*0Sstevel@tonic-gate /* 109*0Sstevel@tonic-gate * Output column (and line) are set to this value on cursor addressable 110*0Sstevel@tonic-gate * terminals when we lose track of the cursor to force cursor 111*0Sstevel@tonic-gate * addressing to occur. 112*0Sstevel@tonic-gate */ 113*0Sstevel@tonic-gate #define UKCOL -20 /* Prototype unknown column */ 114*0Sstevel@tonic-gate 115*0Sstevel@tonic-gate /* 116*0Sstevel@tonic-gate * Attention is the interrupt character (normally 0177 -- delete). 117*0Sstevel@tonic-gate * Quit is the quit signal (normally fs -- control-\) and quits open/visual. 118*0Sstevel@tonic-gate */ 119*0Sstevel@tonic-gate #define ATTN (-2) 120*0Sstevel@tonic-gate #define QUIT ('\\' & 037) 121