613
|
1 /* Definitions file for XEmacs running on Data General's DG/UX
|
428
|
2 version 4.32 upto and including 5.4.1.
|
|
3 Copyright (C) 1994 Free Software Foundation, Inc.
|
|
4
|
613
|
5 This file is part of XEmacs.
|
428
|
6
|
613
|
7 XEmacs is free software; you can redistribute it and/or modify
|
428
|
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
|
613
|
12 XEmacs is distributed in the hope that it will be useful,
|
428
|
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 XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: FSF 19.31. */
|
|
23
|
|
24 /*
|
|
25 * Define symbols to identify the version of Unix this is.
|
|
26 * Define all the symbols that apply correctly.
|
|
27 */
|
|
28
|
|
29 /* #define UNIPLUS */
|
|
30 /* #define USG5 */
|
|
31 /* #define USG */
|
|
32 /* #define HPUX */
|
|
33 /* #define UMAX */
|
|
34 /* #define BSD4_1 */
|
|
35 #define BSD4_2
|
|
36 #define BSD4_3
|
|
37 #define BSD4_4
|
|
38 #define BSD
|
|
39
|
|
40 /* SYSTEM_TYPE should indicate the kind of system you are using.
|
|
41 It sets the Lisp variable system-type. */
|
|
42
|
|
43 #define SYSTEM_TYPE "dgux"
|
|
44
|
|
45 /* XEmacs: There is apparently a bug in DGUX involving a SIGTTOU getting
|
|
46 sent to the process if a background write is attempted when we're
|
|
47 started under a job-control shell, if we turn on FASYNC (which we
|
|
48 do when SIGIO is working). So don't use SIGIO. */
|
|
49 #define BROKEN_SIGIO
|
|
50
|
|
51 /*
|
|
52 * Define HAVE_UNIX_DOMAIN if the system supports Unix
|
|
53 * domain sockets.
|
|
54 */
|
|
55
|
|
56 #define HAVE_UNIX_DOMAIN
|
|
57
|
|
58 /* If your system uses COFF (Common Object File Format) then define the
|
|
59 preprocessor symbol "COFF".
|
|
60
|
|
61 DGUX can use either COFF or ELF; the default is ELF.
|
|
62 To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE
|
|
63 environment variable. */
|
|
64
|
|
65 #if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET)
|
|
66 #undef ELF
|
|
67 #ifndef COFF
|
|
68 #define COFF
|
|
69 #endif /* COFF */
|
|
70 #else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
|
|
71 #undef COFF
|
|
72 #ifndef ELF
|
|
73 #define ELF
|
|
74 #endif /* ELF */
|
|
75 #endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
|
|
76
|
|
77 #ifndef COFF /* People will probably find this apparently unreliable
|
|
78 till the NFS dumping bug is fixed. */
|
|
79
|
|
80 /* It is possible to undump to ELF with DG/UX 5.4, but for revisions below
|
|
81 5.4.1 the undump MUST be done on a local file system, or the kernel will
|
|
82 panic. ELF executables have the advantage of using shared libraries,
|
|
83 while COFF executables will still work on 4.2x systems. */
|
|
84
|
|
85 #define UNEXEC "unexelf.o"
|
|
86
|
|
87 /* This makes sure that all segments in the executable are undumped,
|
|
88 not just text, data, and bss. In the case of Mxdb and shared
|
|
89 libraries, additional information is stored in other sections.
|
|
90 It does not hurt to have this defined if you don't use Mxdb or
|
|
91 shared libraries. In fact, it makes no difference. */
|
|
92
|
|
93 /* Necessary for shared libraries and Mxdb debugging information. */
|
|
94 #define USG_SHARED_LIBRARIES
|
|
95 #endif
|
|
96
|
|
97 /* define MAIL_USE_FLOCK if the mailer uses flock
|
|
98 to interlock access to /usr/spool/mail/$USER.
|
|
99 The alternative is that a lock file named
|
|
100 /usr/spool/mail/$USER.lock. */
|
|
101
|
|
102 /* #define MAIL_USE_FLOCK */
|
|
103
|
|
104 /* Define a replacement for the baud rate switch, since DG/UX uses a different
|
|
105 from BSD. */
|
|
106
|
|
107 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
|
|
108 4800, 9600, 19200, 38400 }
|
|
109
|
|
110 /*
|
|
111 * Make WM Interface Compliant.
|
|
112 */
|
|
113
|
|
114 #define XICCC
|
|
115
|
|
116
|
|
117 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */
|
|
118
|
|
119 /* Use the Berkeley flavors of the library routines, instead of System V. */
|
|
120
|
|
121 #define setpgrp(pid, pgrp) setpgrp2 (pid, pgrp)
|
|
122 #define getpgrp(pid) getpgrp2 (pid)
|
|
123
|
|
124 /* Use TERMINFO instead of termcap */
|
|
125
|
|
126 #define TERMINFO
|
|
127
|
|
128 /*
|
|
129 * Use a Berkeley style sys/wait.h.
|
|
130 * This makes WIF* macros operate on structures instead of ints.
|
|
131 */
|
|
132
|
|
133 #define _BSD_WAIT_FLAVOR
|
|
134
|
|
135 /* #define SYSTEM_MALLOC */
|
|
136
|
|
137 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
|
|
138 #ifndef NOT_C_CODE
|
|
139
|
|
140 /* Define this if you use System 5 Release 4 Streams */
|
|
141
|
|
142 #define INTERRUPTIBLE_OPEN
|
|
143 #define INTERRUPTIBLE_CLOSE
|
|
144 /* can't hurt to define these, even though read/write should auto restart */
|
|
145 #define INTERRUPTIBLE_IO
|
|
146
|
|
147 #endif /* not NOT_C_CODE */
|
|
148
|
|
149 #ifndef __GNUC__
|
|
150 #error You must use GCC to compile Emacs on DGUX
|
|
151 #endif
|
|
152
|
|
153 #define ORDINARY_LINK
|
|
154 #define START_FILES "pre-crt0.o"
|
|
155 #define LIB_GCC "/usr/lib/gcc/libgcc.a"
|
|
156
|
|
157 #ifdef _M88KBCS_TARGET
|
|
158 /* Karl Berry says: the environment
|
|
159 recommended by gcc (88/open, a.k.a. m88kbcs) doesn't support some system
|
|
160 functions, and gcc doesn't make it easy to switch environments. */
|
|
161 #define NO_GET_LOAD_AVG
|
|
162 #endif
|
|
163
|
|
164 /* definitions for xmakefile production */
|
|
165 #ifdef COFF
|
|
166
|
|
167 /* Define the following to use all of the available pty's. */
|
|
168
|
|
169 #define PTY_ITERATION \
|
|
170 for (c = 'p'; c < 't'; c++) \
|
|
171 for (i = 0; (((c == 'p') && (i < 64)) || ((c != 'p') && (i < 16))); i++)
|
|
172
|
|
173 #define PTY_NAME_SPRINTF \
|
|
174 if (c == 'p') \
|
|
175 sprintf (pty_name, "/dev/pty%c%d", c, i); \
|
|
176 else \
|
|
177 sprintf (pty_name, "/dev/pty%c%x", c, i);
|
|
178
|
|
179 #define PTY_TTY_NAME_SPRINTF \
|
|
180 if (c == 'p') \
|
|
181 sprintf (pty_name, "/dev/tty%c%d", c, i); \
|
|
182 else \
|
|
183 sprintf (pty_name, "/dev/tty%c%x", c, i);
|
|
184
|
|
185 #define C_DEBUG_SWITCH "-g"
|
|
186
|
|
187 #else /* not COFF */
|
|
188
|
|
189 /* We are generating ELF object format. This makes the system more
|
|
190 SVR4 like. */
|
|
191
|
|
192 #define SVR4
|
|
193
|
|
194 /* Pseudo-terminal support under SVR4 only loops to deal with errors. */
|
|
195
|
|
196 #define PTY_ITERATION for (i = 0; i < 1; i++)
|
|
197
|
|
198 /* This sets the name of the master side of the PTY. */
|
|
199
|
|
200 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
|
|
201
|
|
202 /* This sets the name of the slave side of the PTY. On SysVr4,
|
|
203 grantpt(3) forks a subprocess, so keep sigchld_handler() from
|
|
204 intercepting that death. If any child but grantpt's should die
|
|
205 within, it should be caught after EMACS_UNBLOCK_SIGNAL. */
|
|
206
|
|
207 #define PTY_TTY_NAME_SPRINTF \
|
|
208 { \
|
|
209 char *ptyname; \
|
|
210 \
|
|
211 EMACS_BLOCK_SIGCHLD; \
|
|
212 if (grantpt (fd) == -1) \
|
|
213 { close (fd); return -1; } \
|
|
214 EMACS_UNBLOCK_SIGCHLD; \
|
|
215 if (unlockpt (fd) == -1) \
|
|
216 { close (fd); return -1; } \
|
|
217 if (!(ptyname = ptsname (fd))) \
|
|
218 { close (fd); return -1; } \
|
|
219 strncpy (pty_name, ptyname, sizeof (pty_name)); \
|
|
220 pty_name[sizeof (pty_name) - 1] = 0; \
|
|
221 }
|
|
222
|
|
223 /* Push various streams modules onto a PTY channel. */
|
|
224
|
|
225 #define SETUP_SLAVE_PTY \
|
|
226 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \
|
|
227 fatal ("ioctl I_PUSH ptem", errno); \
|
|
228 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
|
|
229 fatal ("ioctl I_PUSH ldterm", errno); \
|
|
230 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
|
|
231 fatal ("ioctl I_PUSH ttcompat", errno);
|
|
232
|
|
233 #ifdef __GNUC__
|
|
234 #define C_DEBUG_SWITCH "-g -V2 -mversion-03.00 -mstandard"
|
|
235 #endif
|
|
236
|
|
237 #endif /* ELF */
|
|
238
|
|
239 /* Formerly "BSD_PGRPS" */
|
|
240
|
|
241 #define SIGIO_REQUIRES_SEPARATE_PROCESS_GROUP
|