Mercurial > emacs
annotate src/s/dgux.h @ 8757:5010c26b7a07
(SUNOS4): Defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 15 Sep 1994 05:51:07 +0000 |
parents | b7d077dccd9e |
children | 191acacfa1ec |
rev | line source |
---|---|
457 | 1 /* Definitions file for GNU Emacs running on Data General's DG/UX |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
2 version 4.32 upto and including 5.4.1. |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
3 Copyright (C) 1994 Free Software Foundation, Inc. |
457 | 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 | |
3699 | 9 the Free Software Foundation; either version 2, or (at your option) |
457 | 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 * 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 | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
34 #define BSD4_4 |
457 | 35 #define BSD |
36 | |
37 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
38 It sets the Lisp variable system-type. */ | |
39 | |
5258
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
40 #define SYSTEM_TYPE "dgux" |
457 | 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:
3584
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. | |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
64 |
457 | 65 */ |
66 | |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
67 #define INTERRUPT_INPUT |
457 | 68 |
69 /* | |
70 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | |
71 * Look in <sys/time.h> for a timeval structure. | |
72 */ | |
73 | |
74 #define HAVE_TIMEVAL | |
75 | |
76 /* | |
77 * Define HAVE_SELECT if the system supports the `select' system call. | |
78 */ | |
79 | |
80 #define HAVE_SELECT | |
81 | |
82 /* | |
83 * Define HAVE_SOCKETS if the system supports sockets. | |
84 */ | |
85 | |
86 #define HAVE_SOCKETS | |
87 | |
88 /* | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
89 * Define HAVE_UNIX_DOMAIN if the system supports Unix |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
90 * domain sockets. |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
91 */ |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
92 |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
93 #define HAVE_UNIX_DOMAIN |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
94 |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
95 /* |
457 | 96 * Define HAVE_PTYS if the system supports pty devices. |
97 */ | |
98 | |
99 #define HAVE_PTYS | |
100 | |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
101 /* (Assume) we do have vfork. */ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
102 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
103 #define HAVE_VFORK |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
104 |
457 | 105 /* |
106 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
107 * The 4.2 opendir, etc., library functions. | |
108 */ | |
109 | |
110 /* #define NONSYSTEM_DIR_LIBRARY */ | |
111 | |
112 /* Define this symbol if your system has the functions bcopy, etc. */ | |
113 | |
114 #define BSTRING | |
115 | |
116 /* subprocesses should be defined if you want to | |
117 have code for asynchronous subprocesses | |
118 (as used in M-x compile and M-x shell). | |
119 This is generally OS dependent, and not supported | |
120 under most USG systems. */ | |
121 | |
122 #define subprocesses | |
123 | |
124 /* If your system uses COFF (Common Object File Format) then define the | |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
125 preprocessor symbol "COFF". |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
126 |
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
127 DGUX can use either COFF or ELF; the default is ELF. |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
128 To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
129 environment variable. */ |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
130 |
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
131 #if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
132 #undef ELF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
133 #ifndef COFF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
134 #define COFF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
135 #endif /* COFF */ |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
136 #else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
137 #undef COFF |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
138 #ifndef ELF |
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
139 #define ELF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
140 #endif /* ELF */ |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
141 #endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
142 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
143 #ifndef COFF /* People will probably find this apparently unreliable |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
144 till the NFS dumping bug is fixed. */ |
457 | 145 |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
146 /* It is possible to undump to ELF with DG/UX 5.4, but for revisions below |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
147 5.4.1 the undump MUST be done on a local file system, or the kernel will |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
148 panic. ELF executables have the advantage of using shared libraries, |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
149 while COFF executables will still work on 4.2x systems. */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
150 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
151 #define UNEXEC unexelf.o |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
152 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
153 /* This makes sure that all segments in the executable are undumped, |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
154 not just text, data, and bss. In the case of Mxdb and shared |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
155 libraries, additional information is stored in other sections. |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
156 It does not hurt to have this defined if you don't use Mxdb or |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
157 shared libraries. In fact, it makes no difference. */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
158 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
159 /* Necessary for shared libraries and Mxdb debugging information. */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
160 #define USG_SHARED_LIBRARIES |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
161 #endif |
457 | 162 |
163 /* define MAIL_USE_FLOCK if the mailer uses flock | |
164 to interlock access to /usr/spool/mail/$USER. | |
165 The alternative is that a lock file named | |
166 /usr/spool/mail/$USER.lock. */ | |
167 | |
168 /* #define MAIL_USE_FLOCK */ | |
169 | |
170 /* Define CLASH_DETECTION if you want lock files to be written | |
171 so that Emacs can tell instantly when you try to modify | |
172 a file that someone else has modified in his Emacs. */ | |
173 | |
174 /* #define CLASH_DETECTION */ | |
175 | |
176 /* Define a replacement for the baud rate switch, since DG/UX uses a different | |
177 from BSD. */ | |
178 | |
179 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \ | |
180 4800, 9600, 19200, 38400 } | |
181 | |
182 /* | |
183 * Define NLIST_STRUCT if the system has nlist.h | |
184 */ | |
185 | |
186 #define NLIST_STRUCT | |
187 | |
188 /* | |
189 * Make WM Interface Compliant. | |
190 */ | |
191 | |
192 #define XICCC | |
193 | |
194 /* Here, on a separate page, add any special hacks needed | |
195 to make Emacs work on this system. For example, | |
196 you might define certain system call names that don't | |
197 exist on your system, or that do different things on | |
198 your system and must be used only through an encapsulation | |
199 (Which you should place, by convention, in sysdep.c). */ | |
200 | |
201 /* Some compilers tend to put everything declared static | |
202 into the initialized data area, which becomes pure after dumping Emacs. | |
203 On these systems, you must #define static as nothing to foil this. | |
204 Note that emacs carefully avoids static vars inside functions. */ | |
205 | |
206 /* #define static */ | |
207 | |
208 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */ | |
209 | |
210 /* Use the Berkeley flavors of the library routines, instead of System V. */ | |
211 | |
212 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp) | |
213 #define getpgrp(pid) getpgrp2(pid) | |
214 | |
215 /* Act like Berkeley. */ | |
216 | |
217 #define _setjmp(env) sigsetjmp(env,0) | |
218 #define _longjmp(env,val) longjmp(env,val) | |
219 | |
220 /* Use TERMINFO instead of termcap */ | |
221 | |
222 #define TERMINFO | |
223 | |
224 /* | |
5258
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
225 * Send signals to subprocesses using characters. |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
226 * |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
227 */ |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
228 |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
229 #define SIGNALS_VIA_CHARACTERS |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
230 |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
231 /* |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
232 * Define HAVE_TERMIOS since this is POSIX, |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
233 * for terminal control. Prevent redundant inclusion of termio.h. |
457 | 234 */ |
235 | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
236 #define HAVE_TERMIOS |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
237 #define NO_TERMIO |
457 | 238 |
239 /* | |
240 * Use a Berkeley style sys/wait.h. | |
241 * This makes WIF* macros operate on structures instead of ints. | |
242 */ | |
243 | |
244 #define _BSD_WAIT_FLAVOR | |
245 | |
246 /* | |
247 * Use BSD and POSIX-style signals. This is crucial! | |
248 */ | |
249 | |
4995
51d0545729fa
(SYSTEM_MALLOC): Turn off.
Richard M. Stallman <rms@gnu.org>
parents:
4485
diff
changeset
|
250 /* #define SYSTEM_MALLOC */ |
3584
06708f4682d0
* s/dgux.h: Move #definition of SYSTEM_MALLOC outside of
Jim Blandy <jimb@redhat.com>
parents:
3544
diff
changeset
|
251 |
457 | 252 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */ |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
253 #ifndef THIS_IS_YMAKEFILE |
457 | 254 |
255 /* Make sure signal.h is included so macros below don't mess with it. */ | |
256 /* DG/UX include files prevent multiple inclusion. */ | |
257 | |
258 #include <signal.h> | |
259 | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
260 /* but undefine the sigmask and sigpause macros since they will get |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
261 #define'd later. */ |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
262 #undef sigmask |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
263 #undef sigpause |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
264 |
457 | 265 #define POSIX_SIGNALS |
266 | |
267 /* Define this if you use System 5 Release 4 Streams */ | |
268 #define open sys_open | |
269 #define close sys_close | |
270 #define read sys_read | |
271 #define write sys_write | |
272 | |
3544
a1ccd96244f3
(INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents:
3318
diff
changeset
|
273 #define INTERRUPTIBLE_OPEN |
a1ccd96244f3
(INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents:
3318
diff
changeset
|
274 #define INTERRUPTIBLE_CLOSE |
457 | 275 /* can't hurt to define these, even though read/write should auto restart */ |
3544
a1ccd96244f3
(INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents:
3318
diff
changeset
|
276 #define INTERRUPTIBLE_IO |
457 | 277 |
278 /* Can't use sys_signal because then etc/server.c would need sysdep.o. */ | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
279 extern struct sigaction act, oact; |
457 | 280 #define signal(SIG,FUNC) berk_signal(SIG,FUNC) |
281 | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
282 #else /* THIS_IS_YMAKEFILE */ |
457 | 283 /* force gcc to be used */ |
284 CC=gcc | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
285 #endif /* not THIS_IS_YMAKEFILE */ |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
286 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
287 #define ORDINARY_LINK |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
288 #define START_FILES pre-crt0.o |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
289 #define LIB_GCC /usr/lib/gcc/libgcc.a |
3005
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
290 |
3046
965eb3b38ba2
(NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
3005
diff
changeset
|
291 #ifdef _M88KBCS_TARGET |
3005
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
292 /* Karl Berry says: the environment |
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
293 recommended by gcc (88/open, a.k.a. m88kbcs) doesn't support some system |
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
294 functions, and gcc doesn't make it easy to switch environments. */ |
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
295 #define NO_GET_LOAD_AVG |
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
296 #endif |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
297 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
298 /* definitions for xmakefile production */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
299 #ifdef COFF |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
300 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
301 /* Define the following to use all of the available pty's. */ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
302 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
303 #define PTY_ITERATION \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
304 for (c = 'p'; c < 't'; c++) \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
305 for (i = 0; (((c == 'p') && (i < 64)) || ((c != 'p') && (i < 16))); i++) |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
306 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
307 #define PTY_NAME_SPRINTF \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
308 if (c == 'p') \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
309 sprintf (pty_name, "/dev/pty%c%d", c, i); \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
310 else \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
311 sprintf (pty_name, "/dev/pty%c%x", c, i); |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
312 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
313 #define PTY_TTY_NAME_SPRINTF \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
314 if (c == 'p') \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
315 sprintf (pty_name, "/dev/tty%c%d", c, i); \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
316 else \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
317 sprintf (pty_name, "/dev/tty%c%x", c, i); |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
318 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
319 #define C_DEBUG_SWITCH -g |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
320 |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
321 #else /* not COFF */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
322 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
323 /* We are generating ELF object format. This makes the system more |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
324 SVR4 like. */ |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
325 |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
326 #define SVR4 |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
327 |
5094
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
328 /* Pseudo-terminal support under SVR4 only loops to deal with errors. */ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
329 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
330 #define PTY_ITERATION for (i = 0; i < 1; i++) |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
331 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
332 /* This sets the name of the master side of the PTY. */ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
333 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
334 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
335 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
336 /* This sets the name of the slave side of the PTY. On SysVr4, |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
337 grantpt(3) forks a subprocess, so keep sigchld_handler() from |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
338 intercepting that death. If any child but grantpt's should die |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
339 within, it should be caught after sigrelse(2). */ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
340 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
341 #define PTY_TTY_NAME_SPRINTF \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
342 { \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
343 char *ptsname(), *ptyname; \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
344 \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
345 sigblock(sigmask(SIGCLD)); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
346 if (grantpt(fd) == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
347 fatal("could not grant slave pty"); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
348 sigunblock(sigmask(SIGCLD)); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
349 if (unlockpt(fd) == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
350 fatal("could not unlock slave pty"); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
351 if (!(ptyname = ptsname(fd))) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
352 fatal ("could not enable slave pty"); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
353 strncpy(pty_name, ptyname, sizeof(pty_name)); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
354 pty_name[sizeof(pty_name) - 1] = 0; \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
355 } |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
356 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
357 /* Push various streams modules onto a PTY channel. */ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
358 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
359 #define SETUP_SLAVE_PTY \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
360 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
361 fatal ("ioctl I_PUSH ptem", errno); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
362 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
363 fatal ("ioctl I_PUSH ldterm", errno); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
364 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
365 fatal ("ioctl I_PUSH ttcompat", errno); |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
366 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
367 #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard |
5094
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
368 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
369 #endif /* ELF */ |
3601
d83673a740e8
* s/dgux.h (BROKEN_FASYNC): #define this.
Jim Blandy <jimb@redhat.com>
parents:
3600
diff
changeset
|
370 |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
371 /* Extra stuff which probably should be someplace else but is here out |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
372 of expediency. */ |
4485 | 373 |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
374 #define LIB_X11_LIB -lX11 |
5966 | 375 |
376 /* Process groups work in the traditional BSD manner. */ | |
377 | |
378 #define BSD_PGRPS |