(Fmake_temp_name): forgot the \n\ in the docstring
[emacs.git] / src / s / aix3-1.h
blobab82ae0d3a0cb649721f111d8155bf4c36f92605
1 /* Definitions file for GNU Emacs running on IBM AIX version 3.1
2 Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
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
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
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.
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
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
23 * Define symbols to identify the version of Unix this is.
24 * Define all the symbols that apply correctly.
27 #define USG /* System III, System V, etc */
28 #define USG5
30 /* Specify IBM AIX version of system */
32 #ifndef AIX
33 #define AIX
34 #endif
36 /* turn off c prototypes */
37 #ifndef _NO_PROTO
38 #define _NO_PROTO
39 #endif
41 /* This symbol should be defined on AIX Version 3 ??????? */
42 #ifndef _AIX
43 #define _AIX
44 #endif
46 /* Specify "_BSD" to invoke Berkeley compatibility in header files */
47 /*#ifndef _BSD
48 #define _BSD
49 #endif
52 /* SYSTEM_TYPE should indicate the kind of system you are using.
53 It sets the Lisp variable system-type. */
55 #define SYSTEM_TYPE "aix"
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). */
62 /* #define NOMULTIPLEJOBS */
64 /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
66 /* #define INTERRUPT_INPUT */
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. */
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));
76 * Define HAVE_TERMIO if the system provides sysV-style ioctls
77 * for terminal control.
80 #define HAVE_TERMIOS
83 * Define HAVE_PTYS if the system supports pty devices.
86 #define HAVE_PTYS
88 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
90 #define HAVE_SOCKETS
93 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
94 * The 4.2 opendir, etc., library functions.
97 /* #define NONSYSTEM_DIR_LIBRARY */
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
105 #define SYSV_SYSTEM_DIR
107 /* Define this symbol if your system has the functions bcopy, etc. */
109 #define BSTRING
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. */
116 #define subprocesses
118 /* If your system uses COFF (Common Object File Format) then define the
119 preprocessor symbol "COFF". */
121 /* #define COFF */
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. */
128 /* #define MAIL_USE_FLOCK */
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. */
134 /* #define CLASH_DETECTION */
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. */
140 /* #define SHORTNAMES */
142 /* We do NOT use the Berkeley (and usg5.2.2) interface to nlist. */
144 /* #define NLIST_STRUCT */
146 /* The file containing the kernel's symbol table is called /unix. */
148 #define KERNEL_FILE "/unix"
150 /* The symbol in the kernel where the load average is found
151 is named avenrun. */
153 #define LDAV_SYMBOL "avenrun"
155 /* Special itemss needed to make Emacs run on this system. */
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.
163 #define sigsetmask(mask) /* Null expansion */
165 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
166 but they will run slower. */
168 #define _setjmp setjmp
169 #define _longjmp longjmp
171 /* On USG systems the system calls are interruptible by signals
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. */
178 #define read sys_read
179 #define open sys_open
180 #define write sys_write
182 #define INTERRUPTIBLE_OPEN
183 #define INTERRUPTIBLE_IO
185 /* On USG systems these have different names */
187 #define index strchr
188 #define rindex strrchr
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. */
194 #undef static
196 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
198 /* #define ADDR_CORRECT(x) (x) */
200 #ifndef __GNUC__
201 #define LINKER cc
202 #endif
204 /* Prevent -lg from being used for debugging. Not needed. */
206 #define LIBS_DEBUG
208 /* No need to specify -lc when linking. */
210 #define LIB_STANDARD
212 /* Use terminfo instead of termcap. */
214 #define TERMINFO
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
220 #define SYSTEM_MALLOC
222 /* Include unistd.h, even though we don't define POSIX. */
223 #define NEED_UNISTD_H
225 /* AIX doesn't define this. */
226 #define unix 1
228 /* AIX 3.1 has the HFT features. */
229 #define AIXHFT
231 /* For unexaix.c. */
232 #define ALIGN_DATA_RELOC