Mercurial > emacs
annotate src/s/xenix.h @ 4833:9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 08 Oct 1993 15:05:37 +0000 |
parents | 7be0f0a02725 |
children | 191acacfa1ec |
rev | line source |
---|---|
457 | 1 /* Definitions file for GNU Emacs running SCO Xenix 386 Release 2.2 |
2 Copyright (C) 1988 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
3699 | 8 the Free Software Foundation; either version 2, or (at your option) |
457 | 9 any later version. |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
20 /* | |
21 * Define symbols to identify the version of Unix this is. | |
22 * Define all the symbols that apply correctly. | |
23 */ | |
24 | |
25 /* #define UNIPLUS */ | |
26 #define XENIX | |
27 #define USG5 | |
28 #define USG | |
29 /* #define HPUX */ | |
30 /* #define UMAX */ | |
31 /* #define BSD4_1 */ | |
32 /* #define BSD4_2 */ | |
33 /* #define BSD4_3 */ | |
34 /* #define BSD */ | |
35 /* #define VMS */ | |
36 | |
37 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
38 It sets the Lisp variable system-type. */ | |
39 | |
40 #define SYSTEM_TYPE "xenix" | |
41 | |
42 /* NOMULTIPLEJOBS should be defined if your system's shell | |
43 does not have "job control" (the ability to stop a program, | |
44 run some other program, then continue the first one). */ | |
45 | |
46 #define NOMULTIPLEJOBS | |
47 | |
48 /* Emacs can read input using SIGIO and buffering characters itself, | |
49 or using CBREAK mode and making C-g cause SIGINT. | |
50 The choice is controlled by the variable interrupt_input. | |
51 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
52 | |
53 SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
457
diff
changeset
|
54 CBREAK mode has two disadvantages: |
457 | 55 1) At least in 4.2, it is impossible to handle the Meta key properly. |
56 I hear that in system V this problem does not exist. | |
57 2) Control-G causes output to be discarded. | |
58 I do not know whether this can be fixed in system V. | |
59 | |
60 Another method of doing input is planned but not implemented. | |
61 It would have Emacs fork off a separate process | |
62 to read the input and send it to the true Emacs process | |
63 through a pipe. | |
64 */ | |
65 | |
66 /* #define INTERRUPT_INPUT */ | |
67 | |
68 /* Letter to use in finding device name of first pty, | |
69 if system supports pty's. 'p' means it is /dev/ptyp0 */ | |
70 | |
71 /* #define FIRST_PTY_LETTER 'p' */ | |
72 | |
73 /* | |
74 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
75 * for terminal control. | |
76 */ | |
77 | |
78 #define HAVE_TERMIO | |
79 | |
80 /* | |
81 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | |
82 * Look in <sys/time.h> for a timeval structure. | |
83 */ | |
84 | |
85 /* #define HAVE_TIMEVAL */ | |
86 | |
87 /* | |
88 * Define HAVE_SELECT if the system supports the `select' system call. | |
89 */ | |
90 | |
91 /* #define HAVE_SELECT */ | |
92 | |
93 /* | |
94 * Define HAVE_PTYS if the system supports pty devices. | |
95 */ | |
96 | |
97 /* #define HAVE_PTYS */ | |
98 | |
99 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | |
100 | |
101 /* #define HAVE_SOCKETS */ | |
102 | |
103 /* | |
104 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
105 * The 4.2 opendir, etc., library functions. | |
106 */ | |
107 | |
108 #define NONSYSTEM_DIR_LIBRARY | |
109 | |
110 /* Define this symbol if your system has the functions bcopy, etc. */ | |
111 | |
112 /* #define BSTRING */ | |
113 | |
114 /* subprocesses should be defined if you want to | |
115 have code for asynchronous subprocesses | |
116 (as used in M-x compile and M-x shell). | |
117 This is supposed to work now on system V release 2. */ | |
118 | |
119 #define subprocesses | |
120 | |
121 /* If your system uses COFF (Common Object File Format) then define the | |
122 preprocessor symbol "COFF". */ | |
123 | |
124 /* #define COFF */ | |
125 | |
126 /* Xenix requires completely different unexec code | |
127 which lives in a separate file. Specify the file name. */ | |
128 | |
129 #define UNEXEC unexenix.o | |
130 | |
131 /* define MAIL_USE_FLOCK if the mailer uses flock | |
132 to interlock access to /usr/spool/mail/$USER. | |
133 The alternative is that a lock file named | |
134 /usr/spool/mail/$USER.lock. */ | |
135 | |
136 #define MAIL_USE_FLOCK | |
137 | |
138 /* Define CLASH_DETECTION if you want lock files to be written | |
139 so that Emacs can tell instantly when you try to modify | |
140 a file that someone else has modified in his Emacs. */ | |
141 | |
142 /* The way this is implemented requires long filenames... */ | |
143 /* #define CLASH_DETECTION */ | |
144 | |
145 /* Define SHORTNAMES if the C compiler can distinguish only | |
146 short names. It means that the stuff in ../shortnames | |
147 must be run to convert the long names to short ones. */ | |
148 | |
149 /* #define SHORTNAMES */ | |
150 | |
151 /* We do not use the Berkeley (and usg5.2.2) interface to nlist. */ | |
152 | |
153 /* #define NLIST_STRUCT */ | |
154 | |
155 /* Compensate for one incompatibility between Xenix and V.0. */ | |
156 #define n_zeroes n_name[0] | |
157 | |
158 /* The file containing the kernel's symbol table is called /xenix. */ | |
159 | |
160 #define KERNEL_FILE "/xenix" | |
161 | |
162 /* The symbol in the kernel where the load average is found | |
163 is named avenrun. */ | |
164 | |
165 #define LDAV_SYMBOL "_avenrun" | |
166 | |
167 /* Special hacks needed to make Emacs run on this system. */ | |
168 | |
169 /* | |
170 * Make the sigsetmask function go away. Don't know what the | |
171 * ramifications of this are, but doesn't seem possible to | |
172 * emulate it properly anyway at this point. | |
173 */ | |
174 | |
175 #define sigsetmask(mask) /* Null expansion */ | |
176 | |
177 /* setjmp and longjmp can safely replace _setjmp and _longjmp, | |
178 but they will run slower. */ | |
179 | |
180 #define _setjmp setjmp | |
181 #define _longjmp longjmp | |
182 | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
457
diff
changeset
|
183 /* On USG systems the system calls are interruptible by signals |
457 | 184 that the user program has elected to catch. Thus the system call |
185 must be retried in these cases. To handle this without massive | |
186 changes in the source code, we remap the standard system call names | |
187 to names for our own functions in sysdep.c that do the system call | |
188 with retries. */ | |
189 | |
190 #define read sys_read | |
191 #define open sys_open | |
192 #define write sys_write | |
193 | |
194 #define INTERRUPTIBLE_OPEN | |
195 #define INTERRUPTIBLE_IO | |
196 | |
197 /* On USG systems these have different names */ | |
198 | |
199 #define index strchr | |
200 #define rindex strrchr | |
201 | |
202 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */ | |
203 | |
204 #define ADDR_CORRECT(x) (x) | |
205 | |
206 /* Prevent -lg from being used for debugging. Not implemented? */ | |
207 | |
208 #define LIBS_DEBUG | |
209 | |
210 /* Switches for linking temacs. */ | |
211 | |
212 #define LD_SWITCH_SYSTEM -i | |
213 | |
214 /* Xenix implements sysV style IPC. */ | |
215 | |
216 #define HAVE_SYSVIPC | |
217 | |
218 /* Use terminfo instead of termcap. */ | |
219 | |
220 /* Tell Emacs to use Terminfo. */ | |
221 | |
222 #define TERMINFO | |
223 | |
224 /* Tell Xenix curses to BE Terminfo. */ | |
225 #define M_TERMINFO | |
226 | |
227 /* Control program name for etc/fakemail to run. */ | |
228 | |
229 #ifdef SMAIL | |
230 #define MAIL_PROGRAM_NAME "/usr/bin/smail -q0" | |
231 #else | |
232 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail" | |
233 #endif | |
234 | |
235 /* Some variants have TIOCGETC, but the structures to go with it | |
236 are not declared. */ | |
237 | |
238 #define BROKEN_TIOCGETC |