Mercurial > emacs
annotate src/s/dgux.h @ 5020:94de08fd8a7c
(Fnext_single_property_change): Fix missing \n\.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Mon, 15 Nov 1993 06:41:45 +0000 |
| parents | 0f979427b6ac |
| children | cac54c4a7305 |
| rev | line source |
|---|---|
| 457 | 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 | |
| 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 /* | |
| 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 | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
35 #define BSD4_4 |
| 457 | 36 #define BSD |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
37 #define SVR4 |
| 457 | 38 |
| 39 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
| 40 It sets the Lisp variable system-type. */ | |
| 41 | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
42 #define SYSTEM_TYPE "dgc-unix" |
| 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 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
67 NOTE: On DGUX, there is a problem using INTERRUPT_INPUT: When invoked |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
68 under X11 using a job control shell (csh, ksh) in the background, |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
69 emacs will stop on tty output. I suspect this is a kernel problem and |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
70 have reported it and a sample program to DGC. Meanwhile, a workaround |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
71 is to define BROKEN_FIONREAD and not use INTERRUPT_INPUT. |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
72 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
73 -pmr@rock.concert.net |
| 457 | 74 */ |
| 75 | |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
76 #define BROKEN_FIONREAD |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
77 /* #define INTERRUPT_INPUT */ |
| 457 | 78 |
| 79 /* | |
| 80 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | |
| 81 * Look in <sys/time.h> for a timeval structure. | |
| 82 */ | |
| 83 | |
| 84 #define HAVE_TIMEVAL | |
| 85 | |
| 86 /* | |
| 87 * Define HAVE_SELECT if the system supports the `select' system call. | |
| 88 */ | |
| 89 | |
| 90 #define HAVE_SELECT | |
| 91 | |
| 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_SETSID if the system supports POSIX disassociate |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
94 * terminal. |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
95 */ |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
96 |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
97 #define HAVE_SETSID |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
98 |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
99 /* |
| 457 | 100 * Define HAVE_SOCKETS if the system supports sockets. |
| 101 */ | |
| 102 | |
| 103 #define HAVE_SOCKETS | |
| 104 | |
| 105 /* | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
106 * 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
|
107 * domain sockets. |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
108 */ |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
109 |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
110 #define HAVE_UNIX_DOMAIN |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
111 |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
112 /* |
| 457 | 113 * Define HAVE_PTYS if the system supports pty devices. |
| 114 */ | |
| 115 | |
| 116 #define HAVE_PTYS | |
| 117 | |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
118 /* (Assume) we do have vfork. */ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
119 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
120 #define HAVE_VFORK |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
121 |
| 457 | 122 /* |
| 123 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
| 124 * The 4.2 opendir, etc., library functions. | |
| 125 */ | |
| 126 | |
| 127 /* #define NONSYSTEM_DIR_LIBRARY */ | |
| 128 | |
| 129 /* Define this symbol if your system has the functions bcopy, etc. */ | |
| 130 | |
| 131 #define BSTRING | |
| 132 | |
| 133 /* subprocesses should be defined if you want to | |
| 134 have code for asynchronous subprocesses | |
| 135 (as used in M-x compile and M-x shell). | |
| 136 This is generally OS dependent, and not supported | |
| 137 under most USG systems. */ | |
| 138 | |
| 139 #define subprocesses | |
| 140 | |
| 141 /* 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
|
142 preprocessor symbol "COFF". |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
143 |
|
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
144 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
|
145 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
|
146 environment variable. */ |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
147 |
|
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
148 #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
|
149 #undef ELF |
|
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
150 #ifndef COFF |
|
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
151 #define COFF |
|
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
152 #endif /* COFF */ |
|
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
153 #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
|
154 #undef COFF |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
155 #ifndef ELF |
|
2318
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
156 #define ELF |
|
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
157 #endif /* ELF */ |
|
50737ca2fd45
Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents:
2302
diff
changeset
|
158 #endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
159 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
160 #ifndef COFF /* People will probably find this apparently unreliable |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
161 till the NFS dumping bug is fixed. */ |
| 457 | 162 |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
163 /* 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
|
164 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
|
165 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
|
166 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
|
167 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
168 #define UNEXEC unexelf.o |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
169 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
170 /* 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
|
171 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
|
172 libraries, additional information is stored in other sections. |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
173 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
|
174 shared libraries. In fact, it makes no difference. */ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
175 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
176 /* Necessary for shared libraries and Mxdb debugging information. */ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
177 #define USG_SHARED_LIBRARIES |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
178 #endif |
| 457 | 179 |
| 180 /* define MAIL_USE_FLOCK if the mailer uses flock | |
| 181 to interlock access to /usr/spool/mail/$USER. | |
| 182 The alternative is that a lock file named | |
| 183 /usr/spool/mail/$USER.lock. */ | |
| 184 | |
| 185 /* #define MAIL_USE_FLOCK */ | |
| 186 | |
| 187 /* Define CLASH_DETECTION if you want lock files to be written | |
| 188 so that Emacs can tell instantly when you try to modify | |
| 189 a file that someone else has modified in his Emacs. */ | |
| 190 | |
| 191 /* #define CLASH_DETECTION */ | |
| 192 | |
| 193 /* Define a replacement for the baud rate switch, since DG/UX uses a different | |
| 194 from BSD. */ | |
| 195 | |
| 196 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \ | |
| 197 4800, 9600, 19200, 38400 } | |
| 198 | |
| 199 /* | |
| 200 * Define NLIST_STRUCT if the system has nlist.h | |
| 201 */ | |
| 202 | |
| 203 #define NLIST_STRUCT | |
| 204 | |
| 205 /* | |
| 206 * Make WM Interface Compliant. | |
| 207 */ | |
| 208 | |
| 209 #define XICCC | |
| 210 | |
| 211 /* Here, on a separate page, add any special hacks needed | |
| 212 to make Emacs work on this system. For example, | |
| 213 you might define certain system call names that don't | |
| 214 exist on your system, or that do different things on | |
| 215 your system and must be used only through an encapsulation | |
| 216 (Which you should place, by convention, in sysdep.c). */ | |
| 217 | |
| 218 /* Some compilers tend to put everything declared static | |
| 219 into the initialized data area, which becomes pure after dumping Emacs. | |
| 220 On these systems, you must #define static as nothing to foil this. | |
| 221 Note that emacs carefully avoids static vars inside functions. */ | |
| 222 | |
| 223 /* #define static */ | |
| 224 | |
| 225 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */ | |
| 226 | |
| 227 /* Use the Berkeley flavors of the library routines, instead of System V. */ | |
| 228 | |
| 229 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp) | |
| 230 #define getpgrp(pid) getpgrp2(pid) | |
| 231 | |
| 232 /* Act like Berkeley. */ | |
| 233 | |
| 234 #define _setjmp(env) sigsetjmp(env,0) | |
| 235 #define _longjmp(env,val) longjmp(env,val) | |
| 236 | |
| 237 /* Use TERMINFO instead of termcap */ | |
| 238 | |
| 239 #define TERMINFO | |
| 240 | |
| 241 /* | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
242 * Define HAVE_TERMIOS since this is POSIX, |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
243 * for terminal control. Prevent redundant inclusion of termio.h. |
| 457 | 244 */ |
| 245 | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
246 #define HAVE_TERMIOS |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
247 #define NO_TERMIO |
| 457 | 248 |
| 249 /* | |
| 250 * Use a Berkeley style sys/wait.h. | |
| 251 * This makes WIF* macros operate on structures instead of ints. | |
| 252 */ | |
| 253 | |
| 254 #define _BSD_WAIT_FLAVOR | |
| 255 | |
| 256 /* | |
| 257 * Use BSD and POSIX-style signals. This is crucial! | |
| 258 */ | |
| 259 | |
|
4995
51d0545729fa
(SYSTEM_MALLOC): Turn off.
Richard M. Stallman <rms@gnu.org>
parents:
4485
diff
changeset
|
260 /* pmr now says the GNU malloc works. */ |
|
3584
06708f4682d0
* s/dgux.h: Move #definition of SYSTEM_MALLOC outside of
Jim Blandy <jimb@redhat.com>
parents:
3544
diff
changeset
|
261 /* pmr@rock.concert.net says Emacs fails without this. We don't know why. */ |
|
4995
51d0545729fa
(SYSTEM_MALLOC): Turn off.
Richard M. Stallman <rms@gnu.org>
parents:
4485
diff
changeset
|
262 /* #define SYSTEM_MALLOC */ |
|
3584
06708f4682d0
* s/dgux.h: Move #definition of SYSTEM_MALLOC outside of
Jim Blandy <jimb@redhat.com>
parents:
3544
diff
changeset
|
263 |
| 457 | 264 /* 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
|
265 #ifndef THIS_IS_YMAKEFILE |
| 457 | 266 |
| 267 /* Make sure signal.h is included so macros below don't mess with it. */ | |
| 268 /* DG/UX include files prevent multiple inclusion. */ | |
| 269 | |
| 270 #include <signal.h> | |
| 271 | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
272 /* 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
|
273 #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
|
274 #undef sigmask |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
275 #undef sigpause |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
276 |
| 457 | 277 #define POSIX_SIGNALS |
| 278 | |
| 279 /* Define this if you use System 5 Release 4 Streams */ | |
| 280 #define SYSV4_PTYS | |
| 281 #define open sys_open | |
| 282 #define close sys_close | |
| 283 #define read sys_read | |
| 284 #define write sys_write | |
| 285 | |
|
3544
a1ccd96244f3
(INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents:
3318
diff
changeset
|
286 #define INTERRUPTIBLE_OPEN |
|
a1ccd96244f3
(INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents:
3318
diff
changeset
|
287 #define INTERRUPTIBLE_CLOSE |
| 457 | 288 /* 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
|
289 #define INTERRUPTIBLE_IO |
| 457 | 290 |
| 291 /* 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
|
292 extern struct sigaction act, oact; |
| 457 | 293 #define signal(SIG,FUNC) berk_signal(SIG,FUNC) |
| 294 | |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
295 #else /* THIS_IS_YMAKEFILE */ |
| 457 | 296 /* force gcc to be used */ |
| 297 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
|
298 #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
|
299 |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
300 #define LD_SWITCH_SYSTEM |
|
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
301 #define START_FILES pre-crt0.o |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
302 #define LIBS_SYSTEM -ldgc |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
303 #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
|
304 |
|
3046
965eb3b38ba2
(NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
3005
diff
changeset
|
305 #ifdef _M88KBCS_TARGET |
|
3005
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
306 /* Karl Berry says: the environment |
|
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
307 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
|
308 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
|
309 #define NO_GET_LOAD_AVG |
|
8a5b38421850
(NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents:
2318
diff
changeset
|
310 #endif |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
311 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
312 /* definitions for xmakefile production */ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
313 #ifdef COFF |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
314 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
315 /* 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
|
316 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
317 #define PTY_ITERATION \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
318 for (c = 'p'; c < 't'; c++) \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
319 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
|
320 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
321 #define PTY_NAME_SPRINTF \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
322 if (c == 'p') \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
323 sprintf (pty_name, "/dev/pty%c%d", c, i); \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
324 else \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
325 sprintf (pty_name, "/dev/pty%c%x", c, i); |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
326 |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
327 #define PTY_TTY_NAME_SPRINTF \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
328 if (c == 'p') \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
329 sprintf (pty_name, "/dev/tty%c%d", c, i); \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
330 else \ |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
331 sprintf (pty_name, "/dev/tty%c%x", c, i); |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
332 |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
333 #define C_COMPILER \ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
334 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
335 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
336 #define LINKER \ |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
337 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
338 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
339 #define MAKE_COMMAND \ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
340 TARGET_BINARY_INTERFACE=m88kdguxcoff make |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
341 |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
342 #define C_DEBUG_SWITCH -g |
|
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
343 |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
344 #else /* not COFF */ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
345 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
346 #define C_COMPILER \ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
347 TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
348 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
349 #define LINKER \ |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
350 TARGET_BINARY_INTERFACE=m88kdguxelf gcc |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
351 |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
352 #define MAKE_COMMAND \ |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
353 TARGET_BINARY_INTERFACE=m88kdguxelf make |
|
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
354 |
|
3600
c0b91ff8928a
* s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents:
3591
diff
changeset
|
355 #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard |
|
2010
50b1987ff38a
(ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents:
1549
diff
changeset
|
356 #endif /* COFF */ |
|
3601
d83673a740e8
* s/dgux.h (BROKEN_FASYNC): #define this.
Jim Blandy <jimb@redhat.com>
parents:
3600
diff
changeset
|
357 |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
358 /* 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
|
359 of expediency. */ |
| 4485 | 360 |
|
5008
0f979427b6ac
(INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents:
4995
diff
changeset
|
361 #define LIB_X11_LIB -lX11 |
