456
|
1 /* ibm370.h
|
|
2 For IBM 3090 type systems running AIX370.
|
|
3 Concocted by Scott Schwartz <schwartz@cs.psu.edu>
|
|
4 Copyright (C) 1985, 1986 Free Software Foundation, Inc.
|
|
5
|
|
6 This file is part of GNU Emacs.
|
|
7
|
|
8 GNU Emacs is distributed in the hope that it will be useful,
|
|
9 but WITHOUT ANY WARRANTY. No author or distributor
|
|
10 accepts responsibility to anyone for the consequences of using it
|
|
11 or for whether it serves any particular purpose or works at all,
|
|
12 unless he says so in writing. Refer to the GNU Emacs General Public
|
|
13 License for full details.
|
|
14
|
|
15 Everyone is granted permission to copy, modify and redistribute
|
|
16 GNU Emacs, but only under the conditions described in the
|
|
17 GNU Emacs General Public License. A copy of this license is
|
|
18 supposed to have been given to you along with GNU Emacs so you
|
|
19 can know your rights and responsibilities. It should be in a
|
|
20 file named COPYING. Among other things, the copyright notice
|
|
21 and this notice must be preserved on all copies. */
|
|
22
|
|
23
|
|
24 /* The following three symbols give information on
|
|
25 the size of various data types. */
|
|
26
|
|
27 #define SHORTBITS 16 /* Number of bits in a short */
|
|
28
|
|
29 #define INTBITS 32 /* Number of bits in an int */
|
|
30
|
|
31 #define LONGBITS 32 /* Number of bits in a long */
|
|
32
|
|
33 /* Define BIG_ENDIAN iff lowest-numbered byte in a word
|
|
34 is the most significant byte. */
|
|
35
|
|
36 #define BIG_ENDIAN
|
|
37
|
|
38 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
|
|
39 * group of arguments and treat it as an array of the arguments. */
|
|
40
|
|
41 #define NO_ARG_ARRAY
|
|
42
|
|
43 /* Define WORD_MACHINE if addresses and such have
|
|
44 * to be corrected before they can be used as byte counts. */
|
|
45
|
|
46 /* #define WORD_MACHINE */
|
|
47
|
|
48 /* Define how to take a char and sign-extend into an int.
|
|
49 On machines where char is signed, this is a no-op. */
|
|
50
|
|
51 #define SIGN_EXTEND_CHAR(c) (((c) & 0x80) ? ((c) | 0xffffff80) : (c))
|
|
52
|
|
53 /* Now define a symbol for the cpu type, if your compiler
|
|
54 does not define it automatically:
|
|
55 Ones defined so far include vax, m68000, ns16000, pyramid,
|
|
56 orion, tahoe, APOLLO and many others */
|
|
57 /* high-c defines _AIX370 */
|
|
58
|
|
59 /* Use type int rather than a union, to represent Lisp_Object */
|
|
60 /* This is desirable for most machines. */
|
|
61
|
|
62 #define NO_UNION_TYPE
|
|
63
|
|
64 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
|
|
65 the 24-bit bit field into an int. In other words, if bit fields
|
|
66 are always unsigned.
|
|
67
|
|
68 If you use NO_UNION_TYPE, this flag does not matter. */
|
|
69
|
|
70 #define EXPLICIT_SIGN_EXTEND
|
|
71
|
|
72 /* Data type of load average, as read out of kmem. */
|
|
73
|
|
74 #define LOAD_AVE_TYPE double
|
|
75
|
|
76 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
77
|
|
78 /* XXX */
|
|
79 #define LOAD_AVE_CVT(x) (int)(((double) (x)) * 100.0 / 1.0)
|
|
80
|
|
81 /* Define CANNOT_DUMP on machines where unexec does not work.
|
|
82 Then the function dump-emacs will not be defined
|
|
83 and temacs will do (load "loadup") automatically unless told otherwise. */
|
|
84
|
|
85 #define CANNOT_DUMP
|
|
86 #define CANNOT_UNEXEC
|
|
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 C_ALLOCA if this machine does not support a true alloca
|
|
98 and the one written in C should be used instead.
|
|
99 Define HAVE_ALLOCA to say that the system provides a properly
|
|
100 working alloca function and it should be used.
|
|
101 Define neither one if an assembler-language alloca
|
|
102 in the file alloca.s should be used. */
|
|
103
|
|
104 /* #define C_ALLOCA */
|
|
105 #define HAVE_ALLOCA
|
|
106
|
|
107 #ifndef NO_SHORTNAMES
|
|
108 #include <alloca.h>
|
|
109 #include <setjmp.h>
|
|
110 #endif
|
|
111
|
|
112 /* Define NO_REMAP if memory segmentation makes it not work well
|
|
113 to change the boundary between the text section and data section
|
|
114 when Emacs is dumped. If you define this, the preloaded Lisp
|
|
115 code will not be sharable; but that's better than failing completely. */
|
|
116
|
|
117 #define NO_REMAP
|
|
118
|
|
119 /* Don't try to include sioctl.h. */
|
|
120 #undef NEED_SIOCTL
|
|
121 /* That probably means we shouldn't try ptem.h either. */
|
|
122 #undef NEED_PTEM_H
|
|
123
|
|
124 /* Note we do not define IBMAIX, since the `hft' features
|
|
125 don't exist on this machine. */
|
|
126
|
|
127 #define LIBS_DEBUG -lg
|
|
128 #ifndef LD_SWITCH_SYSTEM
|
|
129 #define LD_SWITCH_SYSTEM
|
|
130 #endif
|
|
131
|
|
132 #define LIBS_SYSTEM -lbsd
|
|
133
|
|
134 /* The symbol in the kernel where the load average is found
|
|
135 is named _avenrun. */
|
|
136
|
|
137 #undef LDAV_SYMBOL
|
|
138 #define LDAV_SYMBOL "_avenrun"
|
|
139
|
|
140 /* define MAIL_USE_FLOCK if the mailer uses flock
|
|
141 to interlock access to /usr/spool/mail/$USER.
|
|
142 The alternative is that a lock file named
|
|
143 /usr/spool/mail/$USER.lock. */
|
|
144 #define MAIL_USE_FLOCK
|
|
145
|
|
146 /* Define CLASH_DETECTION if you want lock files to be written
|
|
147 so that Emacs can tell instantly when you try to modify
|
|
148 a file that someone else has modified in his Emacs. */
|
|
149 #define CLASH_DETECTION
|
|
150
|
|
151 #define BSTRING
|
|
152
|
|
153 /* First pty name is /dev/ptyp0. */
|
|
154 #define FIRST_PTY_LETTER 'p'
|
|
155
|
|
156 /*
|
|
157 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
|
|
158 * Look in <sys/time.h> for a timeval structure.
|
|
159 */
|
|
160 #define HAVE_TIMEVAL
|
|
161
|
|
162 /*
|
|
163 * Define HAVE_SELECT if the system supports the `select' system call.
|
|
164 */
|
|
165 #define HAVE_SELECT
|
|
166
|
|
167 /*
|
|
168 * Define HAVE_PTYS if the system supports pty devices.
|
|
169 */
|
|
170 #define HAVE_PTYS
|
|
171
|
|
172 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
|
|
173
|
|
174 #define HAVE_SOCKETS
|