Mercurial > emacs
annotate src/s/dgux.h @ 91224:3ce31df2ea58
(fontset_find_font): Don't prefer a font of
supplementary charset.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 10 Dec 2007 06:23:41 +0000 |
parents | f55f9811f5d7 |
children |
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. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
3 Copyright (C) 1994, 1999, 2001, 2002, 2003, 2004, |
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
4 2005, 2006, 2007 Free Software Foundation, Inc. |
457 | 5 |
6 This file is part of GNU Emacs. | |
7 | |
8 GNU Emacs is free software; you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
78259
f06998349cfc
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75227
diff
changeset
|
10 the Free Software Foundation; either version 3, or (at your option) |
457 | 11 any later version. |
12 | |
13 GNU Emacs is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 Boston, MA 02110-1301, USA. */ | |
457 | 22 |
23 /* | |
24 * Define symbols to identify the version of Unix this is. | |
25 * Define all the symbols that apply correctly. | |
26 */ | |
27 | |
28 /* #define UNIPLUS */ | |
29 /* #define USG5 */ | |
30 /* #define USG */ | |
31 /* #define HPUX */ | |
32 /* #define UMAX */ | |
33 /* #define BSD4_1 */ | |
34 #define BSD4_2 | |
35 #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
|
36 #define BSD4_4 |
16222
e6423699f21c
Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents:
14186
diff
changeset
|
37 #define BSD_SYSTEM |
457 | 38 |
39 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
40 It sets the Lisp variable system-type. */ | |
41 | |
5258
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
42 #define SYSTEM_TYPE "dgux" |
457 | 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). | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
3584
diff
changeset
|
56 CBREAK mode has two disadvantages |
457 | 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. | |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
66 |
457 | 67 */ |
68 | |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
69 #define INTERRUPT_INPUT |
457 | 70 |
71 /* | |
72 * Define HAVE_SOCKETS if the system supports sockets. | |
73 */ | |
74 | |
75 #define HAVE_SOCKETS | |
76 | |
77 /* | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
78 * 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
|
79 * domain sockets. |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
80 */ |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
81 |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
82 #define HAVE_UNIX_DOMAIN |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
83 |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
84 /* |
457 | 85 * Define HAVE_PTYS if the system supports pty devices. |
86 */ | |
87 | |
88 #define HAVE_PTYS | |
89 | |
90 /* | |
91 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
92 * The 4.2 opendir, etc., library functions. | |
93 */ | |
94 | |
95 /* #define NONSYSTEM_DIR_LIBRARY */ | |
96 | |
97 /* Define this symbol if your system has the functions bcopy, etc. */ | |
98 | |
99 #define BSTRING | |
100 | |
101 /* subprocesses should be defined if you want to | |
102 have code for asynchronous subprocesses | |
103 (as used in M-x compile and M-x shell). | |
104 This is generally OS dependent, and not supported | |
105 under most USG systems. */ | |
106 | |
107 #define subprocesses | |
108 | |
109 /* 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
|
110 preprocessor symbol "COFF". |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
111 |
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
112 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
|
113 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
|
114 environment variable. */ |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
115 |
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
116 #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
|
117 #undef ELF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
118 #ifndef COFF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
119 #define COFF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
120 #endif /* COFF */ |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
121 #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
|
122 #undef COFF |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
123 #ifndef ELF |
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
124 #define ELF |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
125 #endif /* ELF */ |
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
126 #endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
127 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
128 #ifndef COFF /* People will probably find this apparently unreliable |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
129 till the NFS dumping bug is fixed. */ |
457 | 130 |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
131 /* 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
|
132 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
|
133 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
|
134 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
|
135 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
136 #define UNEXEC unexelf.o |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
137 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
138 /* 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
|
139 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
|
140 libraries, additional information is stored in other sections. |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
141 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
|
142 shared libraries. In fact, it makes no difference. */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
143 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
144 /* Necessary for shared libraries and Mxdb debugging information. */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
145 #define USG_SHARED_LIBRARIES |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
146 #endif |
457 | 147 |
148 /* define MAIL_USE_FLOCK if the mailer uses flock | |
149 to interlock access to /usr/spool/mail/$USER. | |
150 The alternative is that a lock file named | |
151 /usr/spool/mail/$USER.lock. */ | |
152 | |
153 /* #define MAIL_USE_FLOCK */ | |
154 | |
155 /* Define CLASH_DETECTION if you want lock files to be written | |
156 so that Emacs can tell instantly when you try to modify | |
157 a file that someone else has modified in his Emacs. */ | |
158 | |
159 /* #define CLASH_DETECTION */ | |
160 | |
161 /* Define a replacement for the baud rate switch, since DG/UX uses a different | |
162 from BSD. */ | |
163 | |
164 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \ | |
165 4800, 9600, 19200, 38400 } | |
166 | |
167 /* | |
168 * Make WM Interface Compliant. | |
169 */ | |
170 | |
171 #define XICCC | |
172 | |
173 /* Here, on a separate page, add any special hacks needed | |
174 to make Emacs work on this system. For example, | |
175 you might define certain system call names that don't | |
176 exist on your system, or that do different things on | |
177 your system and must be used only through an encapsulation | |
178 (Which you should place, by convention, in sysdep.c). */ | |
179 | |
180 /* Some compilers tend to put everything declared static | |
181 into the initialized data area, which becomes pure after dumping Emacs. | |
182 On these systems, you must #define static as nothing to foil this. | |
183 Note that emacs carefully avoids static vars inside functions. */ | |
184 | |
185 /* #define static */ | |
186 | |
187 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */ | |
188 | |
189 /* Use the Berkeley flavors of the library routines, instead of System V. */ | |
190 | |
191 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp) | |
192 #define getpgrp(pid) getpgrp2(pid) | |
193 | |
194 /* Act like Berkeley. */ | |
195 | |
196 #define _setjmp(env) sigsetjmp(env,0) | |
197 #define _longjmp(env,val) longjmp(env,val) | |
198 | |
199 /* Use TERMINFO instead of termcap */ | |
200 | |
201 #define TERMINFO | |
202 | |
203 /* | |
5258
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
204 * Send signals to subprocesses using characters. |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
205 * |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
206 */ |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
207 |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
208 #define SIGNALS_VIA_CHARACTERS |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
209 |
8415001e90e2
(SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents:
5094
diff
changeset
|
210 /* |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
211 * Define HAVE_TERMIOS since this is POSIX, |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
212 * for terminal control. Prevent redundant inclusion of termio.h. |
457 | 213 */ |
214 | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
215 #define HAVE_TERMIOS |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
216 #define NO_TERMIO |
457 | 217 |
218 /* | |
219 * Use a Berkeley style sys/wait.h. | |
220 * This makes WIF* macros operate on structures instead of ints. | |
221 */ | |
222 | |
223 #define _BSD_WAIT_FLAVOR | |
224 | |
225 /* | |
226 * Use BSD and POSIX-style signals. This is crucial! | |
227 */ | |
228 | |
4995
51d0545729fa
(SYSTEM_MALLOC): Turn off.
Richard M. Stallman <rms@gnu.org>
parents:
4485
diff
changeset
|
229 /* #define SYSTEM_MALLOC */ |
3584
06708f4682d0
* s/dgux.h: Move #definition of SYSTEM_MALLOC outside of
Jim Blandy <jimb@redhat.com>
parents:
3544
diff
changeset
|
230 |
457 | 231 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */ |
13462
3096bad240b3
Test NOT_C_CODE instead of THIS_IS_YMAKEFILE.
Richard M. Stallman <rms@gnu.org>
parents:
10760
diff
changeset
|
232 #ifndef NOT_C_CODE |
457 | 233 |
234 /* Make sure signal.h is included so macros below don't mess with it. */ | |
235 /* DG/UX include files prevent multiple inclusion. */ | |
236 | |
237 #include <signal.h> | |
238 | |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
239 /* 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
|
240 #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
|
241 #undef sigmask |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
242 #undef sigpause |
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
243 |
457 | 244 #define POSIX_SIGNALS |
245 | |
18096
25c6c100c16b
(signal): Define only if not NO_DGUX_SIGNAL_REDEF.
Richard M. Stallman <rms@gnu.org>
parents:
16222
diff
changeset
|
246 #ifndef NO_DGUX_SIGNAL_REDEF |
457 | 247 /* 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
|
248 extern struct sigaction act, oact; |
457 | 249 #define signal(SIG,FUNC) berk_signal(SIG,FUNC) |
18096
25c6c100c16b
(signal): Define only if not NO_DGUX_SIGNAL_REDEF.
Richard M. Stallman <rms@gnu.org>
parents:
16222
diff
changeset
|
250 #endif |
457 | 251 |
13462
3096bad240b3
Test NOT_C_CODE instead of THIS_IS_YMAKEFILE.
Richard M. Stallman <rms@gnu.org>
parents:
10760
diff
changeset
|
252 #endif /* not NOT_C_CODE */ |
3096bad240b3
Test NOT_C_CODE instead of THIS_IS_YMAKEFILE.
Richard M. Stallman <rms@gnu.org>
parents:
10760
diff
changeset
|
253 |
3096bad240b3
Test NOT_C_CODE instead of THIS_IS_YMAKEFILE.
Richard M. Stallman <rms@gnu.org>
parents:
10760
diff
changeset
|
254 #ifndef __GNUC__ |
3096bad240b3
Test NOT_C_CODE instead of THIS_IS_YMAKEFILE.
Richard M. Stallman <rms@gnu.org>
parents:
10760
diff
changeset
|
255 #error You must use GCC to compiler Emascs on DGUX |
3096bad240b3
Test NOT_C_CODE instead of THIS_IS_YMAKEFILE.
Richard M. Stallman <rms@gnu.org>
parents:
10760
diff
changeset
|
256 #endif |
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
257 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
258 #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
|
259 #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
|
260 #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
|
261 |
3046
965eb3b38ba2
(NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
3005
diff
changeset
|
262 #ifdef _M88KBCS_TARGET |
3005
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
263 /* Karl Berry says: the environment |
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
264 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
|
265 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
|
266 #define NO_GET_LOAD_AVG |
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
267 #endif |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
268 |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
269 /* definitions for xmakefile production */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
270 #ifdef COFF |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
271 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
272 /* 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
|
273 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
274 #define PTY_ITERATION \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
275 for (c = 'p'; c < 't'; c++) \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
276 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
|
277 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
278 #define PTY_NAME_SPRINTF \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
279 if (c == 'p') \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
280 sprintf (pty_name, "/dev/pty%c%d", c, i); \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
281 else \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
282 sprintf (pty_name, "/dev/pty%c%x", c, i); |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
283 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
284 #define PTY_TTY_NAME_SPRINTF \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
285 if (c == 'p') \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
286 sprintf (pty_name, "/dev/tty%c%d", c, i); \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
287 else \ |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
288 sprintf (pty_name, "/dev/tty%c%x", c, i); |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
289 |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
290 #define C_DEBUG_SWITCH -g |
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
291 |
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
292 #else /* not COFF */ |
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
293 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
294 /* 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
|
295 SVR4 like. */ |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
296 |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
297 #define SVR4 |
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
298 |
5094
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
299 /* 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
|
300 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
301 #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
|
302 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
303 /* 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
|
304 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
305 #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
|
306 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
307 /* 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
|
308 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
|
309 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
|
310 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
|
311 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
312 #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
|
313 { \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
314 char *ptsname(), *ptyname; \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
315 \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
316 sigblock(sigmask(SIGCLD)); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
317 if (grantpt(fd) == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
318 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
|
319 sigunblock(sigmask(SIGCLD)); \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
320 if (unlockpt(fd) == -1) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
321 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
|
322 if (!(ptyname = ptsname(fd))) \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
323 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
|
324 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
|
325 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
|
326 } |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
327 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
328 /* 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
|
329 |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
330 #define SETUP_SLAVE_PTY \ |
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
331 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
|
332 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
|
333 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
|
334 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
|
335 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
|
336 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
|
337 |
10209
6a4d66df8a31
(C_DEBUG_SWITCH): Define this only if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
338 #ifdef __GNUC__ |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
339 #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard |
10209
6a4d66df8a31
(C_DEBUG_SWITCH): Define this only if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
340 #endif |
5094
8b59fb13665e
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents:
5062
diff
changeset
|
341 |
7236
b7d077dccd9e
Remove the SVR4 macro. Move the kernel INTERRUPT_INPUT bug note to
Paul Reilly <pmr@pajato.com>
parents:
7131
diff
changeset
|
342 #endif /* ELF */ |
3601
d83673a740e8
* s/dgux.h (BROKEN_FASYNC): #define this.
Jim Blandy <jimb@redhat.com>
parents:
3600
diff
changeset
|
343 |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
344 /* 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
|
345 of expediency. */ |
4485 | 346 |
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
347 #define LIB_X11_LIB -lX11 |
10760
3d5e9b84bc8f
(LIB_MOTIF): Add -lgen to provide provide the symbols
Paul Reilly <pmr@pajato.com>
parents:
10209
diff
changeset
|
348 #define LIB_MOTIF -lXm -lgen |
5966 | 349 |
350 /* Process groups work in the traditional BSD manner. */ | |
351 | |
352 #define BSD_PGRPS | |
52401 | 353 |
354 /* arch-tag: 1b6d117d-82d2-4480-a6d0-3f7a8360f658 | |
355 (do not change this comment) */ |