aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-13 04:56:06 +0000
committerRichard M. Stallman1994-01-13 04:56:06 +0000
commitf161d0cc30cdf92892519c700a78982605e55e07 (patch)
tree748071181b9f92f30e125140c604ff6701925712 /src
parent0f0ea22919daf72c9ba4a97ee085c7f3e2823c9c (diff)
downloademacs-f161d0cc30cdf92892519c700a78982605e55e07.tar.gz
emacs-f161d0cc30cdf92892519c700a78982605e55e07.zip
Initial revision
Diffstat (limited to 'src')
-rw-r--r--src/s/cxux.h250
-rw-r--r--src/s/cxux7.h7
2 files changed, 257 insertions, 0 deletions
diff --git a/src/s/cxux.h b/src/s/cxux.h
new file mode 100644
index 00000000000..83694f59b06
--- /dev/null
+++ b/src/s/cxux.h
@@ -0,0 +1,250 @@
1/* Header file for Harris CXUX.
2 Copyright (C) 1994 Free Software Foundation, Inc.
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20
21/*
22 * Define symbols to identify the version of Unix this is.
23 * Define all the symbols that apply correctly.
24 */
25
26/* #define UNIPLUS */
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#ifndef _CX_UX
38#define _CX_UX 1
39#endif
40
41/* Define this symbol if you are running CX/UX 7.0 or later (7.0 introduced
42 * support for ELF files, and while we still build emacs in COFF format, the
43 * way it is linked is different for 7.0).
44 */
45/* #define USING_CX_UX_7 */
46
47#ifdef USING_CX_UX_7
48#define LINKER /usr/sde/coff/usr/bin/ld
49#define LD_SWITCH_SYSTEM -L/usr/sde/coff/usr/lib -zzero_word
50#define START_FILES pre-crt0.o /usr/sde/coff/usr/lib/crt0.o /usr/sde/coff/usr/lib/m88100.o
51#else /* !USING_CX_UX_7 */
52#ifdef _M88K
53#define START_FILES pre-crt0.o /lib/crt0.o
54#else
55#define START_FILES cxux-crt0.o /lib/crt0.o
56#endif
57#endif /* USING_CX_UX_7 */
58
59/* SYSTEM_TYPE should indicate the kind of system you are using.
60 It sets the Lisp variable system-type. */
61
62#define SYSTEM_TYPE "usg-unix-v"
63
64#define C_SWITCH_SYSTEM -Xa
65
66#define POSIX_SIGNALS
67
68/* With POSIX signals, also need to use sigaction rather than signal to
69 * setup signal handlers
70 */
71#define signal sys_signal
72
73/* NOMULTIPLEJOBS should be defined if your system's shell
74 does not have "job control" (the ability to stop a program,
75 run some other program, then continue the first one). */
76
77/* #define NOMULTIPLEJOBS */
78
79/* Emacs can read input using SIGIO and buffering characters itself,
80 or using CBREAK mode and making C-g cause SIGINT.
81 The choice is controlled by the variable interrupt_input.
82
83 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
84
85 Emacs uses the presence or absence of the SIGIO macro to indicate
86 whether or not signal-driven I/O is possible. It uses
87 INTERRUPT_INPUT to decide whether to use it by default.
88
89 SIGIO can be used only on systems that implement it (4.2 and 4.3).
90 CBREAK mode has two disadvatages
91 1) At least in 4.2, it is impossible to handle the Meta key properly.
92 I hear that in system V this problem does not exist.
93 2) Control-G causes output to be discarded.
94 I do not know whether this can be fixed in system V.
95
96 Another method of doing input is planned but not implemented.
97 It would have Emacs fork off a separate process
98 to read the input and send it to the true Emacs process
99 through a pipe. */
100
101#define INTERRUPT_INPUT
102/* #define BROKEN_FIONREAD */
103
104/* Letter to use in finding device name of first pty,
105 if system supports pty's. 'a' means it is /dev/ptya0 */
106
107#define FIRST_PTY_LETTER 'A'
108#define PTY_ITERATION for (c = 'A'; c <= 'P'; c++) for (i = 0; i < 16; i++)
109
110/*
111 * Define HAVE_TERMIOS if the system provides POSIX-style
112 * functions and macros for terminal control.
113 *
114 * Define HAVE_TERMIO if the system provides sysV-style ioctls
115 * for terminal control.
116 *
117 * Do not define both. HAVE_TERMIOS is prefered, if it is
118 * supported on your system.
119 */
120
121#define HAVE_TERMIOS
122/* #define HAVE_TERMIO */
123#define NO_TERMIO
124
125/*
126 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
127 * Look in <sys/time.h> for a timeval structure.
128 */
129
130#define HAVE_TIMEVAL
131
132/*
133 * Define HAVE_SELECT if the system supports the `select' system call.
134 */
135
136#define HAVE_SELECT
137
138/*
139 * Define HAVE_PTYS if the system supports pty devices.
140 */
141
142#define HAVE_PTYS
143
144/*
145 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
146 * The 4.2 opendir, etc., library functions.
147 */
148
149/* #define NONSYSTEM_DIR_LIBRARY */
150
151#define SYSV_SYSTEM_DIR
152
153/* Define this symbol if your system has the functions bcopy, etc. */
154
155#define BSTRING
156
157/* subprocesses should be defined if you want to
158 have code for asynchronous subprocesses
159 (as used in M-x compile and M-x shell).
160 This is generally OS dependent, and not supported
161 under most USG systems. */
162
163#define subprocesses
164
165/* If your system uses COFF (Common Object File Format) then define the
166 preprocessor symbol "COFF". */
167
168#define COFF
169
170/* define MAIL_USE_FLOCK if the mailer uses flock
171 to interlock access to /usr/spool/mail/$USER.
172 The alternative is that a lock file named
173 /usr/spool/mail/$USER.lock. */
174
175#define MAIL_USE_FLOCK
176
177/* Define CLASH_DETECTION if you want lock files to be written
178 so that Emacs can tell instantly when you try to modify
179 a file that someone else has modified in his Emacs. */
180
181#define CLASH_DETECTION
182
183/* Define this if your operating system declares signal handlers to
184 have a type other than the usual. `The usual' is `void' for ANSI C
185 systems (i.e. when the __STDC__ macro is defined), and `int' for
186 pre-ANSI systems. If you're using GCC on an older system, __STDC__
187 will be defined, but the system's include files will still say that
188 signal returns int or whatever; in situations like that, define
189 this to be what the system's include files want. */
190/* #define SIGTYPE int */
191#define SIGTYPE void
192
193/* If the character used to separate elements of the executable path
194 is not ':', #define this to be the appropriate character constant. */
195/* #define SEPCHAR ':' */
196
197/* Here, on a separate page, add any special hacks needed
198 to make Emacs work on this system. For example,
199 you might define certain system call names that don't
200 exist on your system, or that do different things on
201 your system and must be used only through an encapsulation
202 (Which you should place, by convention, in sysdep.c). */
203
204/* Yes! The Night Hawk has sockets! */
205
206#define HAVE_SOCKETS
207
208/* We use the Berkeley (and usg5.2.2) interface to nlist. */
209
210#define NLIST_STRUCT
211
212/* The symbol in the kernel where the load average is found
213 is named _avenrun. */
214
215#define LDAV_SYMBOL "_avenrun"
216
217#define KERNEL_FILE "/unix"
218
219/* There are too many kludges required to redefine malloc - use the system
220 one */
221#define SYSTEM_MALLOC
222
223#define _setjmp setjmp
224#define _longjmp longjmp
225
226/* const really does work, but I can't get configure to run the C compiler
227 * with the right options so it figures that out.
228 */
229#undef const
230
231#define HAVE_GETWD
232
233#ifdef sigmask
234#undef sigmask
235#endif
236
237/*
238 * <pwd.h> already declares getpwuid, and with a uid_t argument in ANSI C
239 * mode. Define this so xrdb.c will compile
240 */
241#ifdef __STDC__
242#define DECLARE_GETPWUID_WITH_UID_T
243#endif
244
245/* Some compilers tend to put everything declared static
246 into the initialized data area, which becomes pure after dumping Emacs.
247 On these systems, you must #define static as nothing to foil this.
248 Note that emacs carefully avoids static vars inside functions. */
249
250/* #define static */
diff --git a/src/s/cxux7.h b/src/s/cxux7.h
new file mode 100644
index 00000000000..83323a98642
--- /dev/null
+++ b/src/s/cxux7.h
@@ -0,0 +1,7 @@
1/* Define this symbol if you are running CX/UX 7.0 or later (7.0 introduced
2 * support for ELF files, and while we still build emacs in COFF format, the
3 * way it is linked is different for 7.0).
4 */
5#define USING_CX_UX_7
6
7#include "cxux.h"