*** empty log message ***
[bpt/emacs.git] / src / s / aix3-1.h
CommitLineData
20c428fd 1/* Definitions file for GNU Emacs running on IBM AIX version 3.1
bb7b4368 2 Copyright (C) 1985, 1986, 1990, 1999 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
20c428fd
JB
142/* The file containing the kernel's symbol table is called /unix. */
143
144#define KERNEL_FILE "/unix"
145
146/* The symbol in the kernel where the load average is found
147 is named avenrun. */
148
149#define LDAV_SYMBOL "avenrun"
150\f
151/* Special itemss needed to make Emacs run on this system. */
152
153/*
154 * Make the sigsetmask function go away. Don't know what the
155 * ramifications of this are, but doesn't seem possible to
156 * emulate it properly anyway at this point.
157 */
158
159#define sigsetmask(mask) /* Null expansion */
160
161/* setjmp and longjmp can safely replace _setjmp and _longjmp,
162 but they will run slower. */
163
164#define _setjmp setjmp
165#define _longjmp longjmp
166
20c428fd
JB
167/* On USG systems these have different names */
168
169#define index strchr
170#define rindex strrchr
171
172/* USG systems tend to put everything declared static
173 into the initialized data area, which becomes pure after dumping Emacs.
174 Foil this. Emacs carefully avoids static vars inside functions. */
175
176#undef static
177
178/* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
179
180/* #define ADDR_CORRECT(x) (x) */
181
9ffaad2e 182#ifndef __GNUC__
32676c08 183#define LINKER cc
9ffaad2e 184#endif
20c428fd
JB
185
186/* Prevent -lg from being used for debugging. Not needed. */
187
188#define LIBS_DEBUG
189
190/* No need to specify -lc when linking. */
191
192#define LIB_STANDARD
193
194/* Use terminfo instead of termcap. */
195
196#define TERMINFO
197
198/* The following definition seems to be needed in AIX version 3.1.6.8.
199 It may not have been needed in certain earlier versions. */
200#define HAVE_TCATTR
201
202#define SYSTEM_MALLOC
203
e79a0e1b
RS
204/* Include unistd.h, even though we don't define POSIX. */
205#define NEED_UNISTD_H
206
beb593aa
JB
207/* AIX doesn't define this. */
208#define unix 1
131cbe12
RS
209
210/* AIX 3.1 has the HFT features. */
211#define AIXHFT
96fe2598
DL
212
213/* For unexaix.c. */
214#define ALIGN_DATA_RELOC
215