|
|
1.1 root 1: /* m- file for hp9000 series 200 or 300
2: Copyright (C) 1985 Free Software Foundation, Inc.
3:
4: This file is part of GNU Emacs.
5:
6: GNU Emacs is distributed in the hope that it will be useful,
7: but WITHOUT ANY WARRANTY. No author or distributor
8: accepts responsibility to anyone for the consequences of using it
9: or for whether it serves any particular purpose or works at all,
10: unless he says so in writing. Refer to the GNU Emacs General Public
11: License for full details.
12:
13: Everyone is granted permission to copy, modify and redistribute
14: GNU Emacs, but only under the conditions described in the
15: GNU Emacs General Public License. A copy of this license is
16: supposed to have been given to you along with GNU Emacs so you
17: can know your rights and responsibilities. It should be in a
18: file named COPYING. Among other things, the copyright notice
19: and this notice must be preserved on all copies. */
20:
21:
22: /* Define this symbol if you are running a version of HP-UX
23: which predates version 6.01 */
24:
25: /* #define HPUX_5 */
26:
27: /* The following three symbols give information on
28: the size of various data types. */
29:
30: #define SHORTBITS 16 /* Number of bits in a short */
31:
32: #define INTBITS 32 /* Number of bits in an int */
33:
34: #define LONGBITS 32 /* Number of bits in a long */
35:
36: /* Define BIG_ENDIAN iff lowest-numbered byte in a word
37: is the most significant byte. */
38:
39: #define BIG_ENDIAN
40:
41: /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
42: * group of arguments and treat it as an array of the arguments. */
43:
44: /* #define NO_ARG_ARRAY */
45:
46: /* Define WORD_MACHINE if addresses and such have
47: * to be corrected before they can be used as byte counts. */
48:
49: /* #define WORD_MACHINE */
50:
51: /* Define how to take a char and sign-extend into an int.
52: On machines where char is signed, this is a no-op. */
53:
54: #define SIGN_EXTEND_CHAR(c) (c)
55:
56: /* Now define a symbol for the cpu type, if your compiler
57: does not define it automatically. */
58:
59: #ifndef hp9000s300
60: #define hp9000s300
61: #endif
62:
63: /* Use type int rather than a union, to represent Lisp_Object */
64: /* This is desirable for most machines. */
65:
66: #define NO_UNION_TYPE
67:
68: /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
69: the 24-bit bit field into an int. In other words, if bit fields
70: are always unsigned.
71:
72: If you use NO_UNION_TYPE, this flag does not matter. */
73:
74: #define EXPLICIT_SIGN_EXTEND
75:
76: /* Data type of load average, as read out of kmem. */
77:
78: #define LOAD_AVE_TYPE double
79:
80: /* Convert that into an integer that is 100 for a load average of 1.0 */
81:
82: #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
83:
84: /* Define CANNOT_DUMP on machines where unexec does not work.
85: Then the function dump-emacs will not be defined
86: and temacs will do (load "loadup") automatically unless told otherwise. */
87:
88: /* #define CANNOT_DUMP */
89:
90: /* Define VIRT_ADDR_VARIES if the virtual addresses of
91: pure and impure space as loaded can vary, and even their
92: relative order cannot be relied on.
93:
94: Otherwise Emacs assumes that text space precedes data space,
95: numerically. */
96:
97: /* #define VIRT_ADDR_VARIES */
98:
99: /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */
100:
101: /* #define NOMULTIPLEJOBS */
102:
103: /* The symbol in the kernel where the load average is found
104: is named _avenrun on this machine. */
105:
106: #define LDAV_SYMBOL "_avenrun"
107:
108: /* This library is needed with -g, on the 200/300 only. */
109:
110: #if !defined(__GNUC__) || defined(__HPUX_ASM__)
111: #define LIBS_DEBUG /usr/lib/end.o
112: #endif
113:
114: /* The symbol FIONREAD is defined, but the feature does not work
115: on the 200/300. */
116:
117: #define BROKEN_FIONREAD
118:
119: /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
120: even though symbolic links do not exist.
121: Make sure our conditionals based on S_IFLNK are not confused.
122:
123: Here we assume that stat.h is included before config.h
124: so that we can override it here.
125:
126: Version 6 of HP-UX has symbolic links. */
127:
128: #ifdef HPUX_5
129: #undef S_IFLNK
130: #endif
131:
132: /* Define the BSTRING functions in terms of the sysV functions.
133: Version 6 of HP-UX supplies these in the BSD library,
134: but that library has reported bugs in `signal'. */
135:
136: /* #ifdef HPUX_5 */
137: #define bcopy(a,b,s) memcpy (b,a,s)
138: #define bzero(a,s) memset (a,0,s)
139: #define bcmp memcmp
140: /* #endif */
141:
142: /* On USG systems these have different names.
143: Version 6 of HP-UX supplies these in the BSD library,
144: which we currently want to avoid using. */
145:
146: /* #ifdef HPUX_5 */
147: #define index strchr
148: #define rindex strrchr
149: /* #endif */
150:
151: /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
152: * Emacs to run on both 68010 and 68020 based hp-ux's.
153: *
154: * Define OLD_HP_ASSEMBLER if you have an ancient assembler
155: *
156: * Define HPUX_68010 if you are using the new assembler but
157: * compiling for a s200 (upgraded) or s310. 68010 based
158: * processor without 68881.
159: */
160:
161: /* These switches increase the size of some internal C compiler tables.
162: They are required for compiling the X11 interface files. */
163:
164: #ifndef HPUX_5
165: #ifndef __GNUC__
166: #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
167: #endif
168: #endif
169:
170: /* Define NEED_BSDTTY if you have such. */
171:
172: #ifndef NOMULTIPLEJOBS
173: #define NEED_BSDTTY
174: #endif
175:
176: #ifndef NOT_C_CODE
177: #ifndef NO_SHORTNAMES
178: #include <sys/wait.h>
179: #define WAITTYPE int
180: #endif
181: #define WRETCODE(w) (((w) >> 8) & 0377)
182: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.