(Fdefvar): Doc fix.
[emacs.git] / src / s / aix3-1.h
blob330cbae4279d72c3ce41171db7857afc2f9aef60
1 /* Definitions file for GNU Emacs running on IBM AIX version 3.1
2 Copyright (C) 1985, 1986, 1990, 1999 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 /* The file containing the kernel's symbol table is called /unix. */
144 #define KERNEL_FILE "/unix"
146 /* The symbol in the kernel where the load average is found
147 is named avenrun. */
149 #define LDAV_SYMBOL "avenrun"
151 /* Special itemss needed to make Emacs run on this system. */
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.
159 #define sigsetmask(mask) /* Null expansion */
161 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
162 but they will run slower. */
164 #define _setjmp setjmp
165 #define _longjmp longjmp
167 /* On USG systems these have different names */
169 #define index strchr
170 #define rindex strrchr
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. */
176 #undef static
178 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
180 /* #define ADDR_CORRECT(x) (x) */
182 #ifndef __GNUC__
183 #define LINKER cc
184 #endif
186 /* Prevent -lg from being used for debugging. Not needed. */
188 #define LIBS_DEBUG
190 /* No need to specify -lc when linking. */
192 #define LIB_STANDARD
194 /* Use terminfo instead of termcap. */
196 #define TERMINFO
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
202 #define SYSTEM_MALLOC
204 /* Include unistd.h, even though we don't define POSIX. */
205 #define NEED_UNISTD_H
207 /* AIX doesn't define this. */
208 #define unix 1
210 /* AIX 3.1 has the HFT features. */
211 #define AIXHFT
213 /* For unexaix.c. */
214 #define ALIGN_DATA_RELOC