*** empty log message ***
[bpt/emacs.git] / src / s / usg5-3.h
CommitLineData
20c428fd
JB
1/* Definitions file for GNU Emacs running on AT&T's System V Release 3
2 Copyright (C) 1987 Free Software Foundation, Inc.
3
4This file is part of GNU Emacs.
5
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
8the Free Software Foundation; either version 1, or (at your option)
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
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.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20
21/*
22 * Define symbols to identify the version of Unix this is.
23 * Define all the symbols that apply correctly.
24 */
25
26#define USG /* System III, System V, etc */
27
28#define USG5
29
30/* SYSTEM_TYPE should indicate the kind of system you are using.
31 It sets the Lisp variable system-type. */
32
33#define SYSTEM_TYPE "usg-unix-v"
34
35/* nomultiplejobs should be defined if your system's shell
36 does not have "job control" (the ability to stop a program,
37 run some other program, then continue the first one). */
38
39#define NOMULTIPLEJOBS
40
41/* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
42
43/* #define INTERRUPT_INPUT */
44
45/* Letter to use in finding device name of first pty,
46 if system supports pty's. 'p' means it is /dev/ptyp0 */
47
48#define FIRST_PTY_LETTER 'p'
49
50/*
51 * Define HAVE_TERMIO if the system provides sysV-style ioctls
52 * for terminal control.
53 */
54
55#define HAVE_TERMIO
56
57/*
58 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
59 * Look in <sys/time.h> for a timeval structure.
60 */
61
62/* #define HAVE_TIMEVAL */
63
64/*
65 * Define HAVE_SELECT if the system supports the `select' system call.
ef15f270 66 * SVr3.2 X ports include an emulation.
20c428fd
JB
67 */
68
ef15f270
JB
69#ifdef HAVE_X_WINDOWS
70#define HAVE_SELECT
71#endif /* HAVE_X_WINDOWS */
20c428fd
JB
72
73/*
74 * Define HAVE_PTYS if the system supports pty devices.
75 */
76
77/* Some versions of V.3 have this, but not all.
78 #define HAVE_PTYS
79 #define SYSV_PTYS */
80
81/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
82
83/* #define HAVE_SOCKETS */
84
85/*
86 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
87 * The 4.2 opendir, etc., library functions.
88 */
89
90/* #define NONSYSTEM_DIR_LIBRARY */
91
92/*
93 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
94 * library functions. Almost, but not quite the same as
95 * the 4.2 functions
96 */
97#define SYSV_SYSTEM_DIR
98
99/* Define this symbol if your system has the functions bcopy, etc. */
100
101/* #define BSTRING */
102
103/* subprocesses should be defined if you want to
104 have code for asynchronous subprocesses
105 (as used in M-x compile and M-x shell).
106 This is supposed to work now on system V release 2. */
107
108#define subprocesses
109
110/* If your system uses COFF (Common Object File Format) then define the
111 preprocessor symbol "COFF". */
112
113#define COFF
114
115/* define MAIL_USE_FLOCK if the mailer uses flock
116 to interlock access to /usr/spool/mail/$USER.
117 The alternative is that a lock file named
118 /usr/spool/mail/$USER.lock. */
119
120/* #define MAIL_USE_FLOCK */
121
122/* Define CLASH_DETECTION if you want lock files to be written
123 so that Emacs can tell instantly when you try to modify
124 a file that someone else has modified in his Emacs. */
125
126/* #define CLASH_DETECTION */
127
128/* Define SHORTNAMES if the C compiler can distinguish only
129 short names. It means that the stuff in ../shortnames
130 must be run to convert the long names to short ones. */
131
132/* #define SHORTNAMES */
133
134/* We use the Berkeley (and usg5.2.2) interface to nlist. */
135
136#define NLIST_STRUCT
137
138/* The file containing the kernel's symbol table is called /unix. */
139
140#define KERNEL_FILE "/unix"
141
142/* The symbol in the kernel where the load average is found
143 is named avenrun. */
144
145#define LDAV_SYMBOL "avenrun"
146
147/* Define this if system V IPC is available. */
148
149#define HAVE_SYSVIPC
150\f
151/* Special hacks 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
167/* On USG systems the system calls are interruptable by signals
168 that the user program has elected to catch. Thus the system call
169 must be retried in these cases. To handle this without massive
170 changes in the source code, we remap the standard system call names
171 to names for our own functions in sysdep.c that do the system call
172 with retries. */
173
174#define read sys_read
175#define write sys_write
176#define open sys_open
177#define close sys_close
178
179#define INTERRUPTIBLE_OPEN
180#define INTERRUPTIBLE_CLOSE
181#define INTERRUPTIBLE_IO
182
183/* On USG systems these have different names */
184
185#define index strchr
186#define rindex strrchr
187
188/* USG systems tend to put everything declared static
189 into the initialized data area, which becomes pure after dumping Emacs.
190 Foil this. Emacs carefully avoids static vars inside functions. */
191
192#define static
193
194/* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
195
196#define ADDR_CORRECT(x) (x)
197
20c428fd
JB
198/* Use terminfo instead of termcap. */
199
200#define TERMINFO
201
ef15f270
JB
202/* AT&T SVr3 X wants to be linked with shared libraries */
203
204#define LIB_X11_LIB -lX11_s
205
20c428fd
JB
206/* X needs to talk on the network, so search the network library. */
207
208#define LIBX10_SYSTEM -lnsl_s
ef15f270 209#define LIBX11_SYSTEM -lnls -lnsl_s -lpt -lc_s
20c428fd
JB
210
211/* Some variants have TIOCGETC, but the structures to go with it
212 are not declared. */
213
214#define BROKEN_TIOCGETC
215
ef15f270
JB
216/* Some variants have TIOCGWINSZ, but the structures to go with it
217 are not declared. */
218
219#define BROKEN_TIOCGWINSZ
220
221/* SVr3 does not have utimes(2) */
222
223#define USE_UTIME
224
225/* If we're using the System V X port, BSD bstring functions will be handy */
226
227#ifdef HAVE_X_WINDOWS
228#define BSTRING
229#endif /* HAVE_X_WINDOWS */
230
20c428fd
JB
231/* Enable support for shared libraries in unexec. */
232
233#define USG_SHARED_LIBRARIES
a33ef3ab
JB
234
235/* On USG systems signal handlers return void */
236
237#define SIGTYPE void