Update FSF's address in the preamble.
[bpt/emacs.git] / src / s / aix3-1.h
CommitLineData
20c428fd 1/* Definitions file for GNU Emacs running on IBM AIX version 3.1
beb593aa 2 Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc.
20c428fd
JB
3
4This file is part of GNU Emacs.
5
beb593aa
JB
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
17385adc 8the Free Software Foundation; either version 2, or (at your option)
beb593aa
JB
9any later version.
10
20c428fd 11GNU Emacs is distributed in the hope that it will be useful,
beb593aa
JB
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
20c428fd 15
beb593aa
JB
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
3b7ad313
EN
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20c428fd
JB
20
21
22/*
23 * Define symbols to identify the version of Unix this is.
24 * Define all the symbols that apply correctly.
25 */
26
27#define USG /* System III, System V, etc */
28#define USG5
29
30/* Specify IBM AIX version of system */
31
32#ifndef AIX
33#define AIX
34#endif
35
36/* turn off c prototypes */
37#ifndef _NO_PROTO
38#define _NO_PROTO
39#endif
40
41/* This symbol should be defined on AIX Version 3 ??????? */
42#ifndef _AIX
43#define _AIX
44#endif
45
46/* Specify "_BSD" to invoke Berkeley compatibility in header files */
47/*#ifndef _BSD
48#define _BSD
49#endif
50*/
51
52/* SYSTEM_TYPE should indicate the kind of system you are using.
53 It sets the Lisp variable system-type. */
54
7a6ec3d1 55#define SYSTEM_TYPE "aix"
20c428fd
JB
56
57
58/* nomultiplejobs should be defined if your system's shell
59 does not have "job control" (the ability to stop a program,
60 run some other program, then continue the first one). */
61
62/* #define NOMULTIPLEJOBS */
63
64/* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
65
66/* #define INTERRUPT_INPUT */
67
738949ec
RS
68/* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
69 To get the name of the slave side, you just ttyname() the master side. */
20c428fd 70
738949ec
RS
71#define PTY_ITERATION for (c = 0; !c ; c++)
72#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
73#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
20c428fd
JB
74
75/*
76 * Define HAVE_TERMIO if the system provides sysV-style ioctls
77 * for terminal control.
78 */
79
beb593aa 80#define HAVE_TERMIOS
20c428fd 81
20c428fd
JB
82/*
83 * Define HAVE_PTYS if the system supports pty devices.
84 */
85
86#define HAVE_PTYS
87
88/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
89
90#define HAVE_SOCKETS
91
92/*
93 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
94 * The 4.2 opendir, etc., library functions.
95 */
96
97/* #define NONSYSTEM_DIR_LIBRARY */
98
99/*
100 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
101 * library functions. Almost, but not quite the same as
102 * the 4.2 functions
103 */
104
105#define SYSV_SYSTEM_DIR
106
107/* Define this symbol if your system has the functions bcopy, etc. */
108
109#define BSTRING
110
111/* subprocesses should be defined if you want to
112 have code for asynchronous subprocesses
113 (as used in M-x compile and M-x shell).
114 This is supposed to work now on system V release 2. */
115
116#define subprocesses
117
118/* If your system uses COFF (Common Object File Format) then define the
119 preprocessor symbol "COFF". */
120
121/* #define COFF */
122
123/* define MAIL_USE_FLOCK if the mailer uses flock
124 to interlock access to /usr/spool/mail/$USER.
125 The alternative is that a lock file named
126 /usr/spool/mail/$USER.lock. */
127
128/* #define MAIL_USE_FLOCK */
129
130/* Define CLASH_DETECTION if you want lock files to be written
131 so that Emacs can tell instantly when you try to modify
132 a file that someone else has modified in his Emacs. */
133
134/* #define CLASH_DETECTION */
135
136/* Define SHORTNAMES if the C compiler can distinguish only
137 short names. It means that the stuff in ../shortnames
138 must be run to convert the long names to short ones. */
139
140/* #define SHORTNAMES */
141
142/* We do NOT use the Berkeley (and usg5.2.2) interface to nlist. */
143
144/* #define NLIST_STRUCT */
145
146/* The file containing the kernel's symbol table is called /unix. */
147
148#define KERNEL_FILE "/unix"
149
150/* The symbol in the kernel where the load average is found
151 is named avenrun. */
152
153#define LDAV_SYMBOL "avenrun"
154\f
155/* Special itemss needed to make Emacs run on this system. */
156
157/*
158 * Make the sigsetmask function go away. Don't know what the
159 * ramifications of this are, but doesn't seem possible to
160 * emulate it properly anyway at this point.
161 */
162
163#define sigsetmask(mask) /* Null expansion */
164
165/* setjmp and longjmp can safely replace _setjmp and _longjmp,
166 but they will run slower. */
167
168#define _setjmp setjmp
169#define _longjmp longjmp
170
eb8c3be9 171/* On USG systems the system calls are interruptible by signals
20c428fd
JB
172 that the user program has elected to catch. Thus the system call
173 must be retried in these cases. To handle this without massive
174 changes in the source code, we remap the standard system call names
175 to names for our own functions in sysdep.c that do the system call
176 with retries. */
177
178#define read sys_read
179#define open sys_open
180#define write sys_write
181
182#define INTERRUPTIBLE_OPEN
183#define INTERRUPTIBLE_IO
184
185/* On USG systems these have different names */
186
187#define index strchr
188#define rindex strrchr
189
190/* USG systems tend to put everything declared static
191 into the initialized data area, which becomes pure after dumping Emacs.
192 Foil this. Emacs carefully avoids static vars inside functions. */
193
194#undef static
195
196/* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
197
198/* #define ADDR_CORRECT(x) (x) */
199
9ffaad2e 200#ifndef __GNUC__
32676c08 201#define LINKER cc
9ffaad2e 202#endif
20c428fd
JB
203
204/* Prevent -lg from being used for debugging. Not needed. */
205
206#define LIBS_DEBUG
207
208/* No need to specify -lc when linking. */
209
210#define LIB_STANDARD
211
212/* Use terminfo instead of termcap. */
213
214#define TERMINFO
215
216/* The following definition seems to be needed in AIX version 3.1.6.8.
217 It may not have been needed in certain earlier versions. */
218#define HAVE_TCATTR
219
220#define SYSTEM_MALLOC
221
e79a0e1b
RS
222/* Include unistd.h, even though we don't define POSIX. */
223#define NEED_UNISTD_H
224
beb593aa
JB
225/* AIX doesn't define this. */
226#define unix 1
131cbe12
RS
227
228/* AIX 3.1 has the HFT features. */
229#define AIXHFT