]> code.delx.au - gnu-emacs/blob - src/s/dgux.h
(SYSTEM_MALLOC): Turn off.
[gnu-emacs] / src / s / dgux.h
1 /* Definitions file for GNU Emacs running on Data General's DG/UX
2 version 4.32 and above.
3 Copyright (C) 1985, 1986, 1991 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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
35 #define BSD4_4
36 #define BSD
37 #define SVR4
38
39 /* SYSTEM_TYPE should indicate the kind of system you are using.
40 It sets the Lisp variable system-type. */
41
42 #define SYSTEM_TYPE "dgc-unix"
43
44 /* NOMULTIPLEJOBS should be defined if your system's shell
45 does not have "job control" (the ability to stop a program,
46 run some other program, then continue the first one). */
47
48 /* #define NOMULTIPLEJOBS */
49
50 /* Emacs can read input using SIGIO and buffering characters itself,
51 or using CBREAK mode and making C-g cause SIGINT.
52 The choice is controlled by the variable interrupt_input.
53 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
54
55 SIGIO can be used only on systems that implement it (4.2 and 4.3).
56 CBREAK mode has two disadvantages
57 1) At least in 4.2, it is impossible to handle the Meta key properly.
58 I hear that in system V this problem does not exist.
59 2) Control-G causes output to be discarded.
60 I do not know whether this can be fixed in system V.
61
62 Another method of doing input is planned but not implemented.
63 It would have Emacs fork off a separate process
64 to read the input and send it to the true Emacs process
65 through a pipe.
66 */
67
68 #define INTERRUPT_INPUT
69
70 /* Letter to use in finding device name of first pty,
71 if system supports pty's. 'a' means it is /dev/ptya0 */
72
73 #define FIRST_PTY_LETTER 'p'
74
75 /*
76 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
77 * Look in <sys/time.h> for a timeval structure.
78 */
79
80 #define HAVE_TIMEVAL
81
82 /*
83 * Define HAVE_SELECT if the system supports the `select' system call.
84 */
85
86 #define HAVE_SELECT
87
88 /*
89 * Define HAVE_SETSID if the system supports POSIX disassociate
90 * terminal.
91 */
92 #define HAVE_SETSID
93 /*
94 * Define HAVE_SOCKETS if the system supports sockets.
95 */
96
97 #define HAVE_SOCKETS
98
99 /*
100 * Define HAVE_UNIX_DOMAIN if the system supports Unix
101 * domain sockets.
102 */
103 #define HAVE_UNIX_DOMAIN
104 /*
105 * Define HAVE_PTYS if the system supports pty devices.
106 */
107
108 #define HAVE_PTYS
109
110 /*
111 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
112 * The 4.2 opendir, etc., library functions.
113 */
114
115 /* #define NONSYSTEM_DIR_LIBRARY */
116
117 /* Define this symbol if your system has the functions bcopy, etc. */
118
119 #define BSTRING
120
121 /* subprocesses should be defined if you want to
122 have code for asynchronous subprocesses
123 (as used in M-x compile and M-x shell).
124 This is generally OS dependent, and not supported
125 under most USG systems. */
126
127 #define subprocesses
128
129 /* If your system uses COFF (Common Object File Format) then define the
130 preprocessor symbol "COFF".
131
132 DGUX can use either COFF or ELF; the default is ELF.
133 To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE
134 environment variable. */
135
136 #if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET)
137 #undef ELF
138 #ifndef COFF
139 #define COFF
140 #endif /* COFF */
141 #else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
142 #undef COFF
143 #ifndef ELF
144 #define ELF
145 #endif /* ELF */
146 #endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
147
148 #ifndef COFF /* People will probably find this apparently unreliable
149 till the NFS dumping bug is fixed. */
150
151 /* It is possible to undump to ELF with DG/UX 5.4, but for revisions below
152 5.4.1 the undump MUST be done on a local file system, or the kernel will
153 panic. ELF executables have the advantage of using shared libraries,
154 while COFF executables will still work on 4.2x systems. */
155
156 #define UNEXEC unexelf.o
157
158 /* This makes sure that all segments in the executable are undumped,
159 not just text, data, and bss. In the case of Mxdb and shared
160 libraries, additional information is stored in other sections.
161 It does not hurt to have this defined if you don't use Mxdb or
162 shared libraries. In fact, it makes no difference. */
163
164 /* Necessary for shared libraries and Mxdb debugging information. */
165 #define USG_SHARED_LIBRARIES
166 #endif
167
168 /* define MAIL_USE_FLOCK if the mailer uses flock
169 to interlock access to /usr/spool/mail/$USER.
170 The alternative is that a lock file named
171 /usr/spool/mail/$USER.lock. */
172
173 /* #define MAIL_USE_FLOCK */
174
175 /* Define CLASH_DETECTION if you want lock files to be written
176 so that Emacs can tell instantly when you try to modify
177 a file that someone else has modified in his Emacs. */
178
179 /* #define CLASH_DETECTION */
180
181 /* Define a replacement for the baud rate switch, since DG/UX uses a different
182 from BSD. */
183
184 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
185 4800, 9600, 19200, 38400 }
186
187 /*
188 * Define NLIST_STRUCT if the system has nlist.h
189 */
190
191 #define NLIST_STRUCT
192
193 /*
194 * Make WM Interface Compliant.
195 */
196
197 #define XICCC
198
199 /* Here, on a separate page, add any special hacks needed
200 to make Emacs work on this system. For example,
201 you might define certain system call names that don't
202 exist on your system, or that do different things on
203 your system and must be used only through an encapsulation
204 (Which you should place, by convention, in sysdep.c). */
205 \f
206 /* Some compilers tend to put everything declared static
207 into the initialized data area, which becomes pure after dumping Emacs.
208 On these systems, you must #define static as nothing to foil this.
209 Note that emacs carefully avoids static vars inside functions. */
210
211 /* #define static */
212
213 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */
214
215 /* Use the Berkeley flavors of the library routines, instead of System V. */
216
217 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp)
218 #define getpgrp(pid) getpgrp2(pid)
219
220 /* Act like Berkeley. */
221
222 #define _setjmp(env) sigsetjmp(env,0)
223 #define _longjmp(env,val) longjmp(env,val)
224
225 /* Use TERMINFO instead of termcap */
226
227 #define TERMINFO
228
229 /*
230 * Define HAVE_TERMIOS since this is POSIX,
231 * for terminal control.
232 */
233
234 #define HAVE_TERMIOS
235
236 /*
237 * Use a Berkeley style sys/wait.h.
238 * This makes WIF* macros operate on structures instead of ints.
239 */
240
241 #define _BSD_WAIT_FLAVOR
242
243 /*
244 * Use BSD and POSIX-style signals. This is crucial!
245 */
246
247 /* pmr now says the GNU malloc works. */
248 /* pmr@rock.concert.net says Emacs fails without this. We don't know why. */
249 /* #define SYSTEM_MALLOC */
250
251 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
252 #ifndef THIS_IS_YMAKEFILE
253
254 /* Make sure signal.h is included so macros below don't mess with it. */
255 /* DG/UX include files prevent multiple inclusion. */
256
257 #include <signal.h>
258
259 /* but undefine the sigmask and sigpause macros since they will get
260 #define'd later. */
261 #undef sigmask
262 #undef sigpause
263
264 #define POSIX_SIGNALS
265
266 /* Define this if you use System 5 Release 4 Streams */
267 #define SYSV4_PTYS
268 #define open sys_open
269 #define close sys_close
270 #define read sys_read
271 #define write sys_write
272
273 #define INTERRUPTIBLE_OPEN
274 #define INTERRUPTIBLE_CLOSE
275 /* can't hurt to define these, even though read/write should auto restart */
276 #define INTERRUPTIBLE_IO
277
278 /* Can't use sys_signal because then etc/server.c would need sysdep.o. */
279 extern struct sigaction act, oact;
280 #define signal(SIG,FUNC) berk_signal(SIG,FUNC)
281
282 #else /* THIS_IS_YMAKEFILE */
283 /* force gcc to be used */
284 CC=gcc
285 #endif /* not THIS_IS_YMAKEFILE */
286
287 #define LD_SWITCH_SYSTEM
288 /* Cannot depend on /lib/crt0.o because make does not understand an elink(1) */
289 #define START_FILES pre-crt0.o
290 #define LIBS_SYSTEM -ldgc /lib/crt0.o
291 #define LIB_GCC /usr/lib/gcc/libgcc.a
292
293 #ifdef _M88KBCS_TARGET
294 /* Karl Berry says: the environment
295 recommended by gcc (88/open, a.k.a. m88kbcs) doesn't support some system
296 functions, and gcc doesn't make it easy to switch environments. */
297 #define NO_GET_LOAD_AVG
298 #endif
299 \f
300 /* definitions for xmakefile production */
301 #ifdef COFF
302
303 #define C_COMPILER \
304 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional
305
306 #define LINKER \
307 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -nostdlib
308
309 #define MAKE_COMMAND \
310 TARGET_BINARY_INTERFACE=m88kdguxcoff make
311
312 #define C_DEBUG_SWITCH
313 #else /* not COFF */
314
315 #define C_COMPILER \
316 TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional
317
318 #define LINKER \
319 TARGET_BINARY_INTERFACE=m88kdguxelf gcc -nostdlib
320
321 #define MAKE_COMMAND \
322 TARGET_BINARY_INTERFACE=m88kdguxelf make
323
324 #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard
325 #endif /* COFF */
326 /* Define switches affecting x/ymakefile */
327 #define C_OPTIMIZE_SWITCH
328
329 /* Paul M Reilly <pmr@rock.concert.net> writes:
330 On some systems (DGUX comes to mind real fast) FASYNC causes
331 background writes to the terminal to stop all processes in the
332 process group when invoked under the csh (and probably any shell
333 with job control). This stops Emacs dead in its tracks when coming
334 up under X11. */
335 #define BROKEN_FASYNC
336
337 /* (Assume) we do have vfork. */
338
339 #define HAVE_VFORK