source: trunk/minix/commands/elle/eesite.h@ 12

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 6.0 KB
Line 
1/* ELLE - Copyright 1984, 1987 by Ken Harrenstien, SRI International
2 * This software is quasi-public; it may be used freely with
3 * like software, but may NOT be sold or made part of licensed
4 * products without permission of the author.
5 */
6/*
7 * EESITE.H Site-dependent switches & definitions
8 */
9
10/* CONDITIONAL COMPILATION SWITCHES */
11
12#define V6 0 /* Running on V6 system (else V7 assumed) */
13
14#define APOLLO 0 /* Running on an Apollo system */
15#define BBN 0 /* Running on BBN system (tty stuff) */
16#define BSD4_2 0 /* Running on 4.2BSD system */
17#define COHERENT 0 /* Running on Coherent IBM-PC system */
18#define DNTTY 0 /* Running on SRI V6 Deafnet system (tty stuff) */
19#define HPUX 0 /* Running on Hewlett-Packard System V + */
20#define MINIX 1 /* Running on MINIX (IBM-PC) system */
21#define ONYX 0 /* Running on ONYX Z8000 system */
22#define PCIX 0 /* Running on PC/IX (IBM-PC) system */
23#define SUN 0 /* Running on SUN workstation system */
24#define SYSV 0 /* Running on Unix System V (or perhaps Sys III) */
25#define TOPS20 0 /* Running on TOPS-20 KCC C implementation */
26#define UCB 0 /* Running on 2.8, 2.9, or 4.x BSD sys (tty stuff) */
27#define VENIX86 0 /* Running on Venix86 (IBM-PC) system */
28
29#define ICONOGRAPHICS 0 /* Using Iconographics configuration version */
30#define IMAGEN 0 /* Using Imagen configuration version */
31
32/* Resolve system dependencies */
33#if SUN
34#undef BSD4_2
35#define BSD4_2 1 /* SUN uses 4.2BSD */
36#endif
37
38#if BSD4_2
39#undef UCB
40#define UCB 1 /* 4.2 is special case of general UCB stuff */
41#endif /*BSD4_2*/
42
43#if (PCIX || HPUX)
44#undef SYSV
45#define SYSV 1 /* PC/IX & HP-UX are based on System III & V (resp) */
46#endif
47
48
49/* Set system or site dependent stuff here */
50
51#if V6
52#define void int /* May need this for other systems too */
53#endif
54
55/* Changes to parameters (elle.h) or variable defaults (e_vinit.c) */
56
57#if COHERENT
58#define EVFNO2 0 /* "Old" filename postfix - use no old file! */
59#define EVFNN2 "+" /* "New" filename postfix */
60#define TX_COHIBM 1 /* Ensure Coherent IBM-PC console support included */
61#endif /*COHERENT*/
62
63#if DNTTY
64#define EVLLEN 60 /* Short line length for TDDs */
65#endif /*DNTTY*/
66
67#if HPUX
68#define EVFNO2 "~" /* Same as CCA Emacs. Sorts last in listing. */
69#endif /*HPUX*/
70
71#if MINIX
72#define EVFNO2 ".bak" /* "Old" filename postfix */
73#define EVMARKSHOW "Mark set"
74#define EVCCOL (33) /* Use this as Comment Column */
75#define EVMVPCT 1 /* 1% - Try to use minimal window repositioning */
76#define EVMODWSO 1 /* Use mode window standout if can */
77#define STRERROR 1 /* Say that implementation provides strerror() */
78
79#include <sys/types.h>
80#include <string.h>
81#include <unistd.h>
82#include <stdio.h>
83#endif /*MINIX*/
84
85#if ONYX
86#define STKMEM (4*512) /* ONYX Z8000 seems to have less room avail */
87#endif /*ONYX*/
88
89#if BSD4_2
90#define FNAMELEN 255 /* Max size of last filename component */
91#define FNAMSIZ 400 /* Max size of complete filename */
92#endif /*BSD4_2*/
93
94#if TOPS20
95#define EVHELPFILE "elle:help.dat" /* T20 ELLE help file */
96#define EVPROFBINFILE "ellep.b1" /* T20 binary profile file */
97#define EVPROFTEXTFILE "ellep.e" /* T20 ASCII profile file */
98#define EVFNO2 0 /* No old filename postfix (T20 has generations) */
99#define EVFNN2 0 /* No new filename postfix (T20 has generations) */
100#define FNAMELEN (40*3) /* Max size of non-directory filename component */
101#define FNAMSIZ (40*5) /* Max size of complete filename */
102#define STRERROR 1 /* Say that implementation provides strerror() */
103#endif /*TOPS20*/
104
105#if VENIX86
106#define TIBFSIZ 1 /* Venix86 block reads in raw mode */
107#endif /*VENIX86*/
108
109/* Configuration settings */
110
111#if ICONOGRAPHICS
112#define EVFNO2 "@" /* "Old" filename postfix */
113#define EVMARKSHOW "Set."
114#define PARABLOCK 1 /* Values meaningful only for ICONOGRAPHICS */
115#define PARALINE 2
116#define TXC_VISBEL 1 /* Use visible bell if possible */
117#endif /*ICONOGRAPHICS*/
118
119#if IMAGEN
120#define EVFNO2 ".BAK" /* "Old" filename postfix */
121#define EVMARKSHOW "Mark set"
122#define TOBFSIZ (10*80) /* Size of TTY output buffer */
123#define ECHOLINES 2 /* Use 2 echo-area lines, not 1 */
124#define MAXARGFILES 10 /* Several startup filename args */
125#endif /*IMAGEN*/
126
127
128/* Now set any defaults for things not already defined */
129
130/* TERMINAL SUPPORT SWITCHES */
131/* Only those terminals which have a switch defined here */
132/* will be included in ELLE's "hardwired" support. */
133/* Switch name: Compiles support for: */
134#ifndef TX_TERMCAP
135#define TX_TERMCAP 1 /* * - most TERMCAP-defined terminals */
136#endif
137#ifndef TX_H19
138#define TX_H19 1 /* "H19" - Heath/Zenith-19 */
139#endif
140#ifndef TX_DM2500
141#define TX_DM2500 1 /* "DM2500","DM3025" - Datamedia 2500 */
142#endif
143#ifndef TX_COHIBM
144#define TX_COHIBM 0 /* "COHIBM" - Coherent IBM-PC console */
145#endif
146#ifndef TX_TVI925
147#define TX_TVI925 0 /* "TVI925" - TeleVideo 925 */
148#endif
149#ifndef TX_OM8025
150#define TX_OM8025 0 /* "OM8025" - Omron 8025AG */
151#endif
152
153#ifndef TXC_VISBEL /* Non-zero if want to use visible bell */
154#define TXC_VISBEL 0
155#endif
156
157/* Default terminal type string, used if ELLE cannot get type either
158** from $TERM or from startup args.
159*/
160#ifndef TXS_DEFAULT
161#define TXS_DEFAULT "H19" /* Default terminal type string */
162#endif
163
164/* Combination parameter/switch definitions */
165
166/* STKMEM - System-dependent stack allocation crock, defines amount of
167 * stack memory to grab for general-purpose use. This is mainly
168 * useful for PDP-11s or machines with similarly brain-damaged
169 * address space hardware. A PDP-11 memory segment is 8K bytes,
170 * or 16 512-byte blocks, and the stack segment quarantines all of
171 * this space even though the actual stack may only use a miniscule
172 * portion of it.
173 */
174
175/* Use this if compiling for a PDP11 system, otherwise leave undefined.. */
176#if (V6 || 0)
177#define STKMEM (8*512) /* Use half a PDP11 segment */
178#endif
179
180/* These defaults are in eesite.h so ELLEC can get at them too. */
181#ifndef EVPROFBINFILE /* Location of binary user profile, relative to HOME */
182#define EVPROFBINFILE ".ellepro.b1"
183#endif
184#ifndef EVPROFTEXTFILE /* Location of ASCII user profile (used by ELLEC) */
185#define EVPROFTEXTFILE ".ellepro.e"
186#endif
Note: See TracBrowser for help on using the repository browser.