comparison src/m/hp9000s300.h @ 1112:1dba066c1e0a

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Sun, 13 Sep 1992 10:54:38 +0000
parents 593af70322f0
children 2a2dabcf877b
comparison
equal deleted inserted replaced
1111:95f094fdd81e 1112:1dba066c1e0a
27 27
28 These machines are 68000-series CPUs running HP-UX 28 These machines are 68000-series CPUs running HP-UX
29 (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah. 29 (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah.
30 30
31 If you're running HP-UX, specify `-opsystem=hpux'. 31 If you're running HP-UX, specify `-opsystem=hpux'.
32 32 If you're running BSD, specify `-opsystem=bsd4-3'.
33 If you're running Utah's BSD port, don't use this -machine option;
34 instead, specify `-machine=hp300bsd' and `-opsystem=bsd4-3'.
35 NOTE-END */ 33 NOTE-END */
36 34
37 /* Define this symbol if you are running a version of HP-UX 35 /* Do this here at the top of the file; including sys/wait.h may
38 which predates version 6.5 */ 36 include <endian.h>, which defines BIG_ENDIAN, which will conflict
37 with our definition of BIG_ENDIAN if we do this at the bottom. */
38 #ifndef NOT_C_CODE
39 #ifndef NO_SHORTNAMES
40 #include <sys/wait.h>
41 #define WAITTYPE int
42 #endif
43 #define WRETCODE(w) (((w) >> 8) & 0377)
44 #endif
45
46 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */
39 47
40 /* #define NOMULTIPLEJOBS */ 48 /* #define NOMULTIPLEJOBS */
41 49
42 /* Define this symbol if you are running a version of HP-UX 50 /* Define this symbol if you are running a version of HP-UX
43 which predates version 6.01 */ 51 which predates version 6.01 */
53 61
54 #define LONGBITS 32 /* Number of bits in a long */ 62 #define LONGBITS 32 /* Number of bits in a long */
55 63
56 /* Define BIG_ENDIAN iff lowest-numbered byte in a word 64 /* Define BIG_ENDIAN iff lowest-numbered byte in a word
57 is the most significant byte. */ 65 is the most significant byte. */
58 66 /* Under BSD, <endian.h> defines this. */
67 #ifndef BIG_ENDIAN
59 #define BIG_ENDIAN 68 #define BIG_ENDIAN
69 #endif
60 70
61 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a 71 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
62 * group of arguments and treat it as an array of the arguments. */ 72 * group of arguments and treat it as an array of the arguments. */
63 73
64 /* #define NO_ARG_ARRAY */ 74 /* #define NO_ARG_ARRAY */
106 /* For University of Utah 4.3bsd implemetation on HP300s. 116 /* For University of Utah 4.3bsd implemetation on HP300s.
107 The #ifndef __GNUC__ definitions are required for the "standard" cc, 117 The #ifndef __GNUC__ definitions are required for the "standard" cc,
108 a very old, brain-dead version of PCC. */ 118 a very old, brain-dead version of PCC. */
109 119
110 #ifdef BSD4_3 120 #ifdef BSD4_3
121
111 /* Tell crt0.c that this is an ordinary 68020. */ 122 /* Tell crt0.c that this is an ordinary 68020. */
112 #undef hp9000s300 123 #undef hp9000s300
124 #define m68000
125
113 #define CRT0_DUMMIES bogus_a6, 126 #define CRT0_DUMMIES bogus_a6,
114 127
115 #define HAVE_ALLOCA 128 #define HAVE_ALLOCA
116 129
117 #ifndef __GNUC__ 130 #ifndef __GNUC__
165 #ifdef HPUX_5 178 #ifdef HPUX_5
166 #undef S_IFLNK 179 #undef S_IFLNK
167 #endif 180 #endif
168 181
169 /* Define the BSTRING functions in terms of the sysV functions. 182 /* Define the BSTRING functions in terms of the sysV functions.
170 Version 6 of HP-UX supplies these in the BSD library. */ 183 Version 6 of HP-UX supplies these in the BSD library,
171 184 but that library has reported bugs in `signal'. */
172 #ifdef HPUX_5 185
186 /* #ifdef HPUX_5 */
173 #define bcopy(a,b,s) memcpy (b,a,s) 187 #define bcopy(a,b,s) memcpy (b,a,s)
174 #define bzero(a,s) memset (a,0,s) 188 #define bzero(a,s) memset (a,0,s)
175 #define bcmp memcmp 189 #define bcmp memcmp
176 #endif 190 /* #endif */
177 191
178 /* On USG systems these have different names. 192 /* On USG systems these have different names.
179 Version 6 of HP-UX supplies these in the BSD library. */ 193 Version 6 of HP-UX supplies these in the BSD library,
180 194 which we currently want to avoid using. */
181 #ifdef HPUX_5 195
196 /* #ifdef HPUX_5 */
182 #define index strchr 197 #define index strchr
183 #define rindex strrchr 198 #define rindex strrchr
184 #endif 199 /* #endif */
185 200
186 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 201 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
187 * Emacs to run on both 68010 and 68020 based hp-ux's. 202 * Emacs to run on both 68010 and 68020 based hp-ux's.
188 * 203 *
189 * Define OLD_HP_ASSEMBLER if you have an ancient assembler 204 * Define OLD_HP_ASSEMBLER if you have an ancient assembler
200 #ifndef __GNUC__ 215 #ifndef __GNUC__
201 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 216 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
202 #endif 217 #endif
203 #endif 218 #endif
204 219
205 #endif /* not BSD4_3 */
206
207 /* Define NEED_BSDTTY if you have such. */ 220 /* Define NEED_BSDTTY if you have such. */
208 221
209 #ifndef NOMULTIPLEJOBS 222 #ifndef NOMULTIPLEJOBS
210 #define NEED_BSDTTY 223 #define NEED_BSDTTY
211 #endif 224 #endif
212 225
213 #ifndef NOT_C_CODE 226 #endif /* not BSD4_3 */
214 #ifndef NO_SHORTNAMES
215 #include <sys/wait.h>
216 #define WAITTYPE int
217 #endif
218 #define WRETCODE(w) (((w) >> 8) & 0377)
219 #endif