Mercurial > emacs
annotate src/s/cxux.h @ 49160:dac2fe844fc4
*** empty log message ***
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sun, 12 Jan 2003 15:40:23 +0000 |
parents | ad887a4586ab |
children | 695cf19ef79e d7ddb3e565de |
rev | line source |
---|---|
5574 | 1 /* Header file for Harris CXUX. |
2 Copyright (C) 1994 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 | |
8 the Free Software Foundation; either version 2, or (at your option) | |
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 | |
14186
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
14036
diff
changeset
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
14036
diff
changeset
|
19 Boston, MA 02111-1307, USA. */ |
5574 | 20 |
21 | |
22 /* | |
23 * Define symbols to identify the version of Unix this is. | |
24 * Define all the symbols that apply correctly. | |
25 */ | |
26 | |
27 /* #define UNIPLUS */ | |
28 #define USG5 | |
29 #define USG | |
30 /* #define HPUX */ | |
31 /* #define UMAX */ | |
32 /* #define BSD4_1 */ | |
33 /* #define BSD4_2 */ | |
34 /* #define BSD4_3 */ | |
16220
02044b05d8e0
Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents:
14186
diff
changeset
|
35 /* #define BSD_SYSTEM */ |
5574 | 36 /* #define VMS */ |
37 | |
38 #ifndef _CX_UX | |
39 #define _CX_UX 1 | |
40 #endif | |
41 | |
42 /* Define this symbol if you are running CX/UX 7.0 or later (7.0 introduced | |
43 * support for ELF files, and while we still build emacs in COFF format, the | |
44 * way it is linked is different for 7.0). | |
45 */ | |
46 /* #define USING_CX_UX_7 */ | |
47 | |
48 #ifdef USING_CX_UX_7 | |
49 #define LINKER /usr/sde/coff/usr/bin/ld | |
50 #define LD_SWITCH_SYSTEM -L/usr/sde/coff/usr/lib -zzero_word | |
51 #define START_FILES pre-crt0.o /usr/sde/coff/usr/lib/crt0.o /usr/sde/coff/usr/lib/m88100.o | |
52 #else /* !USING_CX_UX_7 */ | |
53 #ifdef _M88K | |
54 #define START_FILES pre-crt0.o /lib/crt0.o | |
55 #else | |
56 #define START_FILES cxux-crt0.o /lib/crt0.o | |
57 #endif | |
58 #endif /* USING_CX_UX_7 */ | |
59 | |
60 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
61 It sets the Lisp variable system-type. */ | |
62 | |
63 #define SYSTEM_TYPE "usg-unix-v" | |
64 | |
65 #define C_SWITCH_SYSTEM -Xa | |
66 | |
67 #define POSIX_SIGNALS | |
68 | |
69 /* With POSIX signals, also need to use sigaction rather than signal to | |
70 * setup signal handlers | |
71 */ | |
72 #define signal sys_signal | |
73 | |
74 /* NOMULTIPLEJOBS should be defined if your system's shell | |
75 does not have "job control" (the ability to stop a program, | |
76 run some other program, then continue the first one). */ | |
77 | |
78 /* #define NOMULTIPLEJOBS */ | |
79 | |
80 /* Emacs can read input using SIGIO and buffering characters itself, | |
81 or using CBREAK mode and making C-g cause SIGINT. | |
82 The choice is controlled by the variable interrupt_input. | |
83 | |
84 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
85 | |
86 Emacs uses the presence or absence of the SIGIO macro to indicate | |
87 whether or not signal-driven I/O is possible. It uses | |
88 INTERRUPT_INPUT to decide whether to use it by default. | |
89 | |
90 SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
14036 | 91 CBREAK mode has two disadvantages |
5574 | 92 1) At least in 4.2, it is impossible to handle the Meta key properly. |
93 I hear that in system V this problem does not exist. | |
94 2) Control-G causes output to be discarded. | |
95 I do not know whether this can be fixed in system V. | |
96 | |
97 Another method of doing input is planned but not implemented. | |
98 It would have Emacs fork off a separate process | |
99 to read the input and send it to the true Emacs process | |
100 through a pipe. */ | |
101 | |
102 #define INTERRUPT_INPUT | |
103 /* #define BROKEN_FIONREAD */ | |
104 | |
105 /* Letter to use in finding device name of first pty, | |
106 if system supports pty's. 'a' means it is /dev/ptya0 */ | |
107 | |
108 #define FIRST_PTY_LETTER 'A' | |
109 #define PTY_ITERATION for (c = 'A'; c <= 'P'; c++) for (i = 0; i < 16; i++) | |
110 | |
111 /* | |
112 * Define HAVE_TERMIOS if the system provides POSIX-style | |
113 * functions and macros for terminal control. | |
114 * | |
115 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
116 * for terminal control. | |
117 * | |
14036 | 118 * Do not define both. HAVE_TERMIOS is preferred, if it is |
5574 | 119 * supported on your system. |
120 */ | |
121 | |
122 #define HAVE_TERMIOS | |
123 /* #define HAVE_TERMIO */ | |
124 #define NO_TERMIO | |
125 | |
126 /* | |
127 * Define HAVE_PTYS if the system supports pty devices. | |
128 */ | |
129 | |
130 #define HAVE_PTYS | |
131 | |
132 /* | |
133 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
134 * The 4.2 opendir, etc., library functions. | |
135 */ | |
136 | |
137 /* #define NONSYSTEM_DIR_LIBRARY */ | |
138 | |
139 #define SYSV_SYSTEM_DIR | |
140 | |
141 /* Define this symbol if your system has the functions bcopy, etc. */ | |
142 | |
143 #define BSTRING | |
144 | |
145 /* subprocesses should be defined if you want to | |
146 have code for asynchronous subprocesses | |
147 (as used in M-x compile and M-x shell). | |
148 This is generally OS dependent, and not supported | |
149 under most USG systems. */ | |
150 | |
151 #define subprocesses | |
152 | |
153 /* If your system uses COFF (Common Object File Format) then define the | |
154 preprocessor symbol "COFF". */ | |
155 | |
156 #define COFF | |
157 | |
158 /* define MAIL_USE_FLOCK if the mailer uses flock | |
159 to interlock access to /usr/spool/mail/$USER. | |
160 The alternative is that a lock file named | |
161 /usr/spool/mail/$USER.lock. */ | |
162 | |
163 #define MAIL_USE_FLOCK | |
164 | |
165 /* Define CLASH_DETECTION if you want lock files to be written | |
166 so that Emacs can tell instantly when you try to modify | |
167 a file that someone else has modified in his Emacs. */ | |
168 | |
169 #define CLASH_DETECTION | |
170 | |
171 /* Define this if your operating system declares signal handlers to | |
172 have a type other than the usual. `The usual' is `void' for ANSI C | |
173 systems (i.e. when the __STDC__ macro is defined), and `int' for | |
174 pre-ANSI systems. If you're using GCC on an older system, __STDC__ | |
175 will be defined, but the system's include files will still say that | |
176 signal returns int or whatever; in situations like that, define | |
177 this to be what the system's include files want. */ | |
178 /* #define SIGTYPE int */ | |
179 #define SIGTYPE void | |
180 | |
181 /* If the character used to separate elements of the executable path | |
182 is not ':', #define this to be the appropriate character constant. */ | |
183 /* #define SEPCHAR ':' */ | |
184 | |
185 /* Here, on a separate page, add any special hacks needed | |
186 to make Emacs work on this system. For example, | |
187 you might define certain system call names that don't | |
188 exist on your system, or that do different things on | |
189 your system and must be used only through an encapsulation | |
190 (Which you should place, by convention, in sysdep.c). */ | |
191 | |
192 /* Yes! The Night Hawk has sockets! */ | |
193 | |
194 #define HAVE_SOCKETS | |
195 | |
196 /* The symbol in the kernel where the load average is found | |
197 is named _avenrun. */ | |
198 | |
199 #define LDAV_SYMBOL "_avenrun" | |
200 | |
201 #define KERNEL_FILE "/unix" | |
202 | |
203 /* There are too many kludges required to redefine malloc - use the system | |
204 one */ | |
205 #define SYSTEM_MALLOC | |
206 | |
207 #define _setjmp setjmp | |
208 #define _longjmp longjmp | |
209 | |
210 /* const really does work, but I can't get configure to run the C compiler | |
211 * with the right options so it figures that out. | |
212 */ | |
213 #undef const | |
214 | |
215 #ifdef sigmask | |
216 #undef sigmask | |
217 #endif | |
218 | |
219 /* | |
220 * <pwd.h> already declares getpwuid, and with a uid_t argument in ANSI C | |
221 * mode. Define this so xrdb.c will compile | |
222 */ | |
223 #ifdef __STDC__ | |
224 #define DECLARE_GETPWUID_WITH_UID_T | |
225 #endif | |
226 | |
227 /* Some compilers tend to put everything declared static | |
228 into the initialized data area, which becomes pure after dumping Emacs. | |
229 On these systems, you must #define static as nothing to foil this. | |
230 Note that emacs carefully avoids static vars inside functions. */ | |
231 | |
232 /* #define static */ |