Mercurial > emacs
annotate src/m/ibmps2-aix.h @ 11982:a88f862b3927
(revert-buffer): Save after-revert-hook (both local and
global values) before reverting, and run the saved values at the end.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 29 May 1995 06:59:26 +0000 |
parents | 23f72b18b420 |
children | 1d4654a97585 |
rev | line source |
---|---|
456 | 1 /* machine description file for ibm ps/2 aix386. |
2 Copyright (C) 1989 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
3699 | 8 the Free Software Foundation; either version 2, or (at your option) |
456 | 9 any later version. |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
20 | |
21 /* The following line tells the configuration script what sort of | |
22 operating system this machine is likely to run. | |
23 USUAL-OPSYS="note" | |
24 | |
25 NOTE-START | |
26 Use -opsystem=usg5-3 on AIX 1.2. | |
27 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not | |
28 work with certain new X window managers, and may be suboptimal. | |
29 NOTE-END */ | |
30 | |
31 /* The following three symbols give information on | |
32 the size of various data types. */ | |
33 | |
34 #define SHORTBITS 16 /* Number of bits in a short */ | |
35 | |
36 #define INTBITS 32 /* Number of bits in an int */ | |
37 | |
38 #define LONGBITS 32 /* Number of bits in a long */ | |
39 | |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
40 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
41 is the most significant byte. */ |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
42 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
43 #undef WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
44 |
456 | 45 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
46 * group of arguments and treat it as an array of the arguments. */ | |
47 | |
48 /* #define NO_ARG_ARRAY */ | |
49 | |
50 /* Define WORD_MACHINE if addresses and such have | |
51 * to be corrected before they can be used as byte counts. */ | |
52 | |
53 /* #define WORD_MACHINE */ | |
54 | |
55 /* Now define a symbol for the cpu type, if your compiler | |
56 does not define it automatically: | |
57 Ones defined so far include vax, m68000, ns16000, pyramid, | |
58 orion, tahoe, APOLLO and many others */ | |
59 | |
60 #define INTEL386 | |
61 #define aix386 | |
62 | |
63 #define IBMAIX | |
64 | |
65 /* Use type int rather than a union, to represent Lisp_Object */ | |
66 | |
67 #define NO_UNION_TYPE | |
68 | |
69 /* crt0.c, if it is used, should use the i386-bsd style of entry. | |
70 with no extra dummy args. On USG and XENIX, | |
71 NO_REMAP says this isn't used. */ | |
72 | |
73 #define CRT0_DUMMIES bogus_fp, | |
74 | |
75 /* crt0.c should define a symbol `start' and do .globl with a dot. */ | |
76 | |
77 #define DOT_GLOBAL_START | |
78 | |
79 /* USG systems do not actually support the load average, | |
80 so disable it for them. */ | |
81 | |
82 /* Define CANNOT_DUMP on machines where unexec does not work. | |
83 Then the function dump-emacs will not be defined | |
84 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
85 | |
86 /* #define CANNOT_DUMP */ | |
87 | |
88 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
89 pure and impure space as loaded can vary, and even their | |
90 relative order cannot be relied on. | |
91 | |
92 Otherwise Emacs assumes that text space precedes data space, | |
93 numerically. */ | |
94 | |
95 /* #define VIRT_ADDR_VARIES */ | |
96 | |
97 /* Define addresses, macros, change some setup for dump */ | |
98 | |
99 #define NO_REMAP | |
100 #undef static | |
101 /* Since NO_REMAP, problem with statics doesn't exist */ | |
102 | |
103 #ifdef USG5_3 | |
104 #define TEXT_START 0x00000000 | |
105 #else | |
106 #define TEXT_START 0x00400000 | |
107 #define TEXT_END 0 | |
108 #define DATA_START 0x00800000 | |
109 #define DATA_END 0 | |
110 | |
111 /* The data segment in this machine always starts at address 0x00800000. | |
112 An address of data cannot be stored correctly in a Lisp object; | |
113 we always lose the high bits. We must tell XPNTR to add them back. */ | |
114 | |
115 #define DATA_SEG_BITS 0x00800000 | |
116 #endif | |
117 | |
118 #if 0 /* I refuse to promulgate a recommendation that would make | |
119 users unable to debug - RMS. */ | |
120 /* delete the following line to foil optimization, enable debugging */ | |
121 #define C_DEBUG_SWITCH -O | |
122 #endif | |
123 | |
124 #define BSTRING | |
125 #define HAVE_VFORK | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
126 #undef HAVE_TERMIO |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
127 #define HAVE_TERMIOS |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
128 |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
129 /* Send signals to subprocesses by "typing" special chars at them. */ |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
130 |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
131 #define SIGNALS_VIA_CHARACTERS |
456 | 132 |
133 /* | |
134 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir | |
135 * library functions. Almost, but not quite the same as | |
136 * the 4.2 functions | |
137 */ | |
138 #define SYSV_SYSTEM_DIR | |
139 | |
140 /* | |
141 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
142 * The 4.2 opendir, etc., library functions. | |
143 */ | |
144 #undef NONSYSTEM_DIR_LIBRARY | |
145 | |
8892 | 146 /* AIX utimes allegedly causes SIGSEGV. */ |
147 #undef HAVE_UTIMES /* override configuration decision */ | |
456 | 148 |
149 /* AIX defines FIONREAD, but it does not work. */ | |
150 #define BROKEN_FIONREAD | |
151 | |
152 /* Data type of load average, as read out of kmem. */ | |
153 | |
154 #define LOAD_AVE_TYPE long /* For AIX (sysV) */ | |
155 | |
156 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
157 | |
158 #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0) | |
159 | |
160 /* This page was added in June 1990. It may be incorrect for some versions | |
161 of aix, so delete it if it causes trouble. */ | |
162 | |
163 /* AIX has sigsetmask() */ | |
164 #undef sigsetmask | |
165 | |
166 /* AIX386 has BSD4.3 PTYs */ | |
167 | |
168 #define HAVE_PTYS | |
169 | |
170 /* AIX has IPC. It also has sockets, and either can be used for client/server. | |
171 I would suggest the client/server code be changed to use HAVE_SOCKETS rather | |
172 than BSD as the conditional if sockets provide any advantages. */ | |
173 | |
174 #define HAVE_SYSVIPC | |
175 | |
176 /* AIX has sockets */ | |
177 | |
178 #define HAVE_SOCKETS | |
179 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */ | |
180 | |
181 /* Specify the font for X to use. */ | |
182 | |
183 #define X_DEFAULT_FONT "8x13" | |
184 | |
185 /* AIX has a wait.h. */ | |
186 | |
187 #define HAVE_WAIT_HEADER | |
188 | |
189 /* sioctl.h should not be included, says bytheway@cs.utah.edu. */ | |
190 #undef NEED_SIOCTL | |
191 /* I'm guessing that that means it doesn't want ptem.h either. */ | |
192 #undef NEED_PTEM_H | |
193 | |
194 /* aix has `union wait' */ | |
195 #define HAVE_UNION_WAIT | |
196 | |
197 /* Here override various assumptions in ymakefile */ | |
198 | |
199 /* Define C_ALLOCA if this machine does not support a true alloca | |
200 and the one written in C should be used instead. | |
201 Define HAVE_ALLOCA to say that the system provides a properly | |
202 working alloca function and it should be used. | |
203 Define neither one if an assembler-language alloca | |
204 in the file alloca.s should be used. */ | |
205 | |
206 #ifdef __GNUC__ | |
207 #define HAVE_ALLOCA | |
208 #define alloca(n) __builtin_alloca(n) | |
1379
65b91b0ee332
[__GNUC__ >= 2] (LIB_STANDARD): Don't define.
Richard M. Stallman <rms@gnu.org>
parents:
1354
diff
changeset
|
209 #if __GNUC__ < 2 |
456 | 210 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc |
1379
65b91b0ee332
[__GNUC__ >= 2] (LIB_STANDARD): Don't define.
Richard M. Stallman <rms@gnu.org>
parents:
1354
diff
changeset
|
211 #endif |
456 | 212 /* -g fails to work, so it is omitted. */ |
213 /* tranle says that -fstrength-reduce does not help. */ | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
214 #define C_DEBUG_SWITCH |
456 | 215 #else |
216 #define C_ALLOCA | |
217 #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */ | |
218 #define LIBS_MACHINE -lbsd -lrts | |
219 #endif | |
220 | |
221 #define OBJECTS_MACHINE hftctl.o | |
222 #define LD_SWITCH_MACHINE -T0x00400000 -K -e start | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
223 #define LIBS_DEBUG /* no -lg on aix ps/2 */ |
456 | 224 |
225 #ifdef USG5_3 | |
226 #define XICCC | |
227 #define HAVE_GETWD | |
228 #undef LD_SWITCH_MACHINE | |
229 #define LD_SWITCH_MACHINE -T0x0 -K -e start | |
230 | |
231 /* Things defined in s-usg5-3.h that need to be overridden. */ | |
232 #undef NOMULTIPLEJOBS | |
233 #undef BROKEN_TIOCGETC | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
234 #undef BROKEN_TIOCGWINSZ |
456 | 235 #undef LIBX10_SYSTEM |
236 #undef LIBX11_SYSTEM | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
237 #undef LIB_X11_LIB |
456 | 238 #endif |
1354 | 239 |
240 /* Shared libraries are supported in a patch release of ps/2 1.2.1. | |
241 If the system has them, the user can turn them on, and this code | |
242 will make them work. */ | |
243 #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */ | |
244 | |
245 #ifdef USG_SHARED_LIBRARIES | |
246 #define ORDINARY_LINK | |
247 #undef LIB_STANDARD | |
248 #undef LD_SWITCH_MACHINE | |
249 #if __GNUC__ > 1 | |
250 #define LD_SWITCH_MACHINE -shlib | |
251 #endif | |
252 #endif |