Mercurial > emacs
annotate src/m/ibmrt-aix.h @ 19860:c17fd465ea95 libc-970911 libc-970912 libc-970913 libc-970914 libc-970915 libc-970916 libc-970917 libc-970918 libc-970919 libc-970920 libc-970921 libc-970922 libc-970923 libc-970924 libc-970925 libc-970926 libc-970927 libc-970928 libc-970929 libc-970930 libc-971001 libc-971018 libc-971019 libc-971020 libc-971021 libc-971022 libc-971023 libc-971024 libc-971025 libc-971026 libc-971027 libc-971028 libc-971029 libc-971030 libc-971031 libc-971101 libc-971102 libc-971103 libc-971104 libc-971105 libc-971106 libc-971107 libc-971108 libc-971109 libc-971110 libc-971111 libc-971112 libc-971113 libc-971114 libc-971115 libc-971116 libc-971117 libc-971118 libc-971120 libc-971121 libc-971122 libc-971123 libc-971124 libc-971125 libc-971126 libc-971127 libc-971128 libc-971129 libc-971130 libc-971201 libc-971203 libc-971204 libc-971205 libc-971206 libc-971207 libc-971208 libc-971209 libc-971210 libc-971211 libc-971212 libc-971213 libc-971214 libc-971217 libc-971218 libc-971219 libc-971220 libc-971221 libc-971222 libc-971223 libc-971224 libc-971225 libc-971226 libc-971227 libc-971228 libc-971229 libc-971230 libc-971231 libc-980103 libc-980104 libc-980105 libc-980106 libc-980107 libc-980108 libc-980109 libc-980110 libc-980111 libc-980112 libc-980114 libc-980115 libc-980116 libc-980117 libc-980118 libc-980119 libc-980120 libc-980121 libc-980122 libc-980123 libc-980124 libc-980125 libc-980126 libc-980127 libc-980128
typos.
author | Jeff Law <law@redhat.com> |
---|---|
date | Wed, 10 Sep 1997 21:16:20 +0000 |
parents | d8360498f935 |
children | 1a4c3573a216 |
rev | line source |
---|---|
446 | 1 /* RTPC AIX machine/system dependent defines |
2 Copyright (C) 1988 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) |
446 | 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 | |
14186
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
13374
diff
changeset
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
13374
diff
changeset
|
19 Boston, MA 02111-1307, USA. */ |
446 | 20 |
21 | |
22 /* The following line tells the configuration script what sort of | |
23 operating system this machine is likely to run. | |
24 USUAL-OPSYS="usg5-2-2" */ | |
25 | |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
26 /* 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
|
27 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
|
28 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
29 #define WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
30 |
446 | 31 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
32 * group of arguments and treat it as an array of the arguments. */ | |
33 | |
34 #define NO_ARG_ARRAY | |
35 | |
36 /* Now define a symbol for the cpu type, if your compiler | |
37 does not define it automatically. */ | |
38 | |
39 #ifndef IBMAIX | |
40 #define IBMAIX | |
41 #endif | |
42 | |
43 /* Use type int rather than a union, to represent Lisp_Object */ | |
44 /* This is desirable for most machines. */ | |
45 | |
46 #define NO_UNION_TYPE | |
47 | |
48 /* No load average information appears in the AIX kernel. VRM has this | |
49 info, and if anyone desires they should fix fns.c to get it out of VRM */ | |
50 | |
51 /* Define CANNOT_DUMP on machines where unexec does not work. | |
52 Then the function dump-emacs will not be defined | |
53 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
54 | |
55 /* #define CANNOT_DUMP */ | |
56 | |
57 /* Define addresses, macros, change some setup for dump */ | |
58 | |
59 #undef COFF | |
60 #define NO_REMAP | |
61 #undef static | |
62 /* Since NO_REMAP, problem with statics doesn't exist */ | |
63 | |
64 #define TEXT_START 0x10000000 | |
65 #define TEXT_END 0 | |
66 #define DATA_START 0x20000000 | |
67 #define DATA_END 0 | |
68 | |
69 /* The data segment in this machine always starts at address 0x20000000. | |
70 An address of data cannot be stored correctly in a Lisp object; | |
71 we always lose the high bits. We must tell XPNTR to add them back. */ | |
72 | |
73 #define DATA_SEG_BITS 0x20000000 | |
74 | |
75 #define N_BADMAG(x) BADMAG(x) | |
76 #define N_TXTOFF(x) A_TEXTPOS(x) | |
77 #define N_SYMOFF(x) A_SYMPOS(x) | |
78 #define A_TEXT_OFFSET(HDR) sizeof(HDR) | |
79 #define ADJUST_EXEC_HEADER \ | |
80 unexec_text_start += sizeof(hdr); \ | |
81 unexec_data_start = ohdr.a_dbase | |
82 #undef ADDR_CORRECT | |
83 #define ADDR_CORRECT(x) ((int)(x)) | |
84 | |
85 /* This is the offset of the executable's text, from the start of the file. */ | |
86 | |
87 #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr)) | |
88 | |
89 /* Define C_ALLOCA if this machine does not support a true alloca | |
90 and the one written in C should be used instead. | |
91 Define HAVE_ALLOCA to say that the system provides a properly | |
92 working alloca function and it should be used. | |
93 Define neither one if an assembler-language alloca | |
94 in the file alloca.s should be used. */ | |
95 | |
96 #define C_ALLOCA | |
97 #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */ | |
98 | |
99 /* AIX has PTYs, so define here, along with macros needed to make them work. */ | |
100 | |
101 #define HAVE_PTYS | |
102 #define PTY_ITERATION for (i=0; i<256; i++) | |
103 #define PTY_NAME_SPRINTF sprintf (ptyname, "/dev/ptc%d", i); | |
104 | |
105 #define PTY_TTY_NAME_SPRINTF \ | |
106 { /* Check that server side not already open */ \ | |
107 if ((ioctl (*ptyv, PTYSTATUS, 0) & 0xFFFF) != 0) \ | |
108 { \ | |
109 close (*ptyv); \ | |
110 continue; \ | |
111 } \ | |
112 /* And finally to be sure we can open it later */ \ | |
113 sprintf (ptyname, "/dev/pts%d", i); \ | |
114 signal (SIGHUP,SIG_IGN); \ | |
115 } /* ignore hangup at process end */ | |
116 | |
117 /* TIOCNOTTY doesn't occur on AIX, but the rest | |
118 of the conditionalized code in process.c does | |
119 the right thing if we fake this out. */ | |
120 #define TIOCNOTTY IOCTYPE | |
121 | |
122 /* AIX has IPC. It also has sockets, and either can be used for client/server. | |
123 I would suggest the client/server code be changed to use HAVE_SOCKETS rather | |
16221 | 124 than BSD_SYSTEM as the conditional if sockets provide any advantages. */ |
446 | 125 |
126 #define HAVE_SYSVIPC | |
127 | |
128 /* AIX has sockets */ | |
129 | |
130 #define HAVE_SOCKETS | |
131 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */ | |
132 | |
133 /* Specify the font for X to use. */ | |
134 | |
135 #define X_DEFAULT_FONT "Rom14.500" | |
136 | |
137 /* Here override various assumptions in ymakefile */ | |
138 | |
139 /* On AIX 2.2.1, use these definitions instead | |
140 #define C_SWITCH_MACHINE -I/usr/include -Nn2000 | |
141 #define LIBS_MACHINE -lX -lrts | |
142 */ | |
143 | |
144 #define C_SWITCH_MACHINE -I/usr/include -I/usr/include/bsd -Nn2000 | |
145 #define LIBS_MACHINE -lXMenu -lX -lsock -lbsd -lrts | |
146 | |
147 #define OBJECTS_MACHINE hftctl.o | |
148 #define START_FILES /lib/crt0.o | |
149 /* -lXMenu, -lX must precede -lsock, -lbsd */ | |
150 #define LD_SWITCH_MACHINE -n -T0x10000000 -K -e start | |
151 | |
152 #if 0 /* I refuse to promulgate a recommendation that would make | |
153 users unable to debug - RMS. */ | |
154 /* delete the following line to foil optimization, enable debugging */ | |
155 #define C_DEBUG_SWITCH -O | |
156 #endif | |
157 | |
158 | |
159 /* Setup to do some things BSD way - these won't work previous to AIX 2.1.2 */ | |
160 | |
161 #include </usr/include/bsd/BSDtoAIX.h> | |
162 #define BSTRING | |
163 #define HAVE_GETTIMEOFDAY | |
164 #define HAVE_VFORK | |
165 | |
8892 | 166 /* AIX utimes allegedly causes SIGSEGV. */ |
167 #undef HAVE_UTIMES /* override configuration decision */ | |
446 | 168 |
169 /* AIX defines FIONREAD, but it does not work. */ | |
170 #define BROKEN_FIONREAD | |
3458 | 171 |
172 /* rocky@watson.ibm.com says this is needed. */ | |
173 #define HAVE_FTIME |