(ange-ftp-binary-file-name-regexp): Handle .gz.
[emacs.git] / src / m / hp9000s300.h
blob6d247d348069c173768ec58325c880b6bb7df721
1 /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD.
2 Copyright (C) 1985 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
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
8 the Free Software Foundation; either version 1, or (at your option)
9 any later version.
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.
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. */
21 /* The following line tells the configuration script what sort of
22 operating system this machine is likely to run.
23 USUAL-OPSYS="note"
25 NOTE-START
26 HP 9000 series 200 or 300 (-machine=hp9000s300)
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.
31 If you're running HP-UX, specify `-opsystem=hpux'.
32 If you're running BSD, specify `-opsystem=bsd4-3'.
33 NOTE-END */
35 /* I don't understand why we have to do this at all! -JimB */
36 #if 0
38 /* Do this here at the top of the file; including sys/wait.h may
39 include <endian.h>, which defines BIG_ENDIAN, which will conflict
40 with our definition of BIG_ENDIAN if we do this at the bottom. */
41 #ifndef NOT_C_CODE
42 #ifndef NO_SHORTNAMES
43 #include <sys/wait.h>
44 #define WAITTYPE int
45 #endif
46 #define WRETCODE(w) (((w) >> 8) & 0377)
47 #endif
49 #endif
51 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */
53 /* #define NOMULTIPLEJOBS */
55 /* Define this symbol if you are running a version of HP-UX
56 which predates version 6.01 */
58 /* #define HPUX_5 */
60 /* The following three symbols give information on
61 the size of various data types. */
63 #define SHORTBITS 16 /* Number of bits in a short */
65 #define INTBITS 32 /* Number of bits in an int */
67 #define LONGBITS 32 /* Number of bits in a long */
69 /* Define BIG_ENDIAN iff lowest-numbered byte in a word
70 is the most significant byte. */
71 /* Under BSD, <endian.h> defines this to be 4321; rather than fight with it,
72 we'll just give in. Compatibility, akido style. */
73 #ifndef BIG_ENDIAN
74 #define BIG_ENDIAN 4321
75 #endif
77 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
78 * group of arguments and treat it as an array of the arguments. */
80 /* #define NO_ARG_ARRAY */
82 /* Define WORD_MACHINE if addresses and such have
83 * to be corrected before they can be used as byte counts. */
85 /* #define WORD_MACHINE */
87 /* Now define a symbol for the cpu type, if your compiler
88 does not define it automatically. */
90 #ifndef hp9000s300
91 #define hp9000s300
92 #endif
94 /* Use type int rather than a union, to represent Lisp_Object */
95 /* This is desirable for most machines. */
97 #define NO_UNION_TYPE
99 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
100 the 24-bit bit field into an int. In other words, if bit fields
101 are always unsigned.
103 If you use NO_UNION_TYPE, this flag does not matter. */
105 #define EXPLICIT_SIGN_EXTEND
107 /* Define CANNOT_DUMP on machines where unexec does not work.
108 Then the function dump-emacs will not be defined
109 and temacs will do (load "loadup") automatically unless told otherwise. */
111 /* #define CANNOT_DUMP */
113 /* Define VIRT_ADDR_VARIES if the virtual addresses of
114 pure and impure space as loaded can vary, and even their
115 relative order cannot be relied on.
117 Otherwise Emacs assumes that text space precedes data space,
118 numerically. */
120 /* #define VIRT_ADDR_VARIES */
122 /* For University of Utah 4.3bsd implemetation on HP300s.
123 The #ifndef __GNUC__ definitions are required for the "standard" cc,
124 a very old, brain-dead version of PCC. */
126 #ifdef BSD4_3
128 /* Tell crt0.c that this is an ordinary 68020. */
129 #undef hp9000s300
130 #define m68000
132 #define CRT0_DUMMIES bogus_a6,
134 #define HAVE_ALLOCA
136 #ifndef __GNUC__
137 #define LIBS_DEBUG /* don't have -lg that works */
138 #define C_DEBUG_SWITCH /* don't support -g */
139 #endif
141 #undef LOAD_AVE_TYPE
142 #undef LOAD_AVE_CVT
143 #define LOAD_AVE_TYPE long
144 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0))
146 #endif /* BSD4_3 */
148 #ifndef BSD4_3
149 /* The following definitions are for HPUX only. */
151 /* The symbol in the kernel where the load average is found
152 is named _avenrun on this machine. */
154 #define LDAV_SYMBOL "_avenrun"
156 /* Data type of load average, as read out of kmem. */
158 #define LOAD_AVE_TYPE double
160 /* Convert that into an integer that is 100 for a load average of 1.0 */
162 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
164 /* This library is needed with -g, on the 200/300 only. */
166 #if !defined(__GNUC__) || defined(__HPUX_ASM__)
167 #define LIBS_DEBUG /usr/lib/end.o
168 #endif
170 /* The symbol FIONREAD is defined, but the feature does not work
171 on the 200/300. */
173 #define BROKEN_FIONREAD
175 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
176 even though symbolic links do not exist.
177 Make sure our conditionals based on S_IFLNK are not confused.
179 Here we assume that stat.h is included before config.h
180 so that we can override it here.
182 Version 6 of HP-UX has symbolic links. */
184 #ifdef HPUX_5
185 #undef S_IFLNK
186 #endif
188 /* Define the BSTRING functions in terms of the sysV functions.
189 Version 6 of HP-UX supplies these in the BSD library,
190 but that library has reported bugs in `signal'. */
192 /* #ifdef HPUX_5 */
193 #define bcopy(a,b,s) memcpy (b,a,s)
194 #define bzero(a,s) memset (a,0,s)
195 #define bcmp memcmp
196 /* #endif */
198 /* On USG systems these have different names.
199 Version 6 of HP-UX supplies these in the BSD library,
200 which we currently want to avoid using. */
202 /* #ifdef HPUX_5 */
203 #define index strchr
204 #define rindex strrchr
205 /* #endif */
207 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
208 * Emacs to run on both 68010 and 68020 based hp-ux's.
210 * Define OLD_HP_ASSEMBLER if you have an ancient assembler
212 * Define HPUX_68010 if you are using the new assembler but
213 * compiling for a s200 (upgraded) or s310. 68010 based
214 * processor without 68881.
217 /* These switches increase the size of some internal C compiler tables.
218 They are required for compiling the X11 interface files. */
220 #ifndef HPUX_5
221 #ifndef __GNUC__
222 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
223 #endif
224 #endif
226 /* Define NEED_BSDTTY if you have such. */
228 #ifndef NOMULTIPLEJOBS
229 #define NEED_BSDTTY
230 #endif
232 #endif /* not BSD4_3 */