Added lots more cookies to fkey_table[], and code to do even more.
[emacs.git] / src / s / xenix.h
blob83d48a1b56e183b50380d4a0c8c057f7e06fe809
1 /* Definitions file for GNU Emacs running SCO Xenix 386 Release 2.2
2 Copyright (C) 1988 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 1, 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, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 * Define symbols to identify the version of Unix this is.
22 * Define all the symbols that apply correctly.
25 /* #define UNIPLUS */
26 #define XENIX
27 #define USG5
28 #define USG
29 /* #define HPUX */
30 /* #define UMAX */
31 /* #define BSD4_1 */
32 /* #define BSD4_2 */
33 /* #define BSD4_3 */
34 /* #define BSD */
35 /* #define VMS */
37 /* SYSTEM_TYPE should indicate the kind of system you are using.
38 It sets the Lisp variable system-type. */
40 #define SYSTEM_TYPE "xenix"
42 /* NOMULTIPLEJOBS should be defined if your system's shell
43 does not have "job control" (the ability to stop a program,
44 run some other program, then continue the first one). */
46 #define NOMULTIPLEJOBS
48 /* Emacs can read input using SIGIO and buffering characters itself,
49 or using CBREAK mode and making C-g cause SIGINT.
50 The choice is controlled by the variable interrupt_input.
51 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
53 SIGIO can be used only on systems that implement it (4.2 and 4.3).
54 CBREAK mode has two disadvatages
55 1) At least in 4.2, it is impossible to handle the Meta key properly.
56 I hear that in system V this problem does not exist.
57 2) Control-G causes output to be discarded.
58 I do not know whether this can be fixed in system V.
60 Another method of doing input is planned but not implemented.
61 It would have Emacs fork off a separate process
62 to read the input and send it to the true Emacs process
63 through a pipe.
66 /* #define INTERRUPT_INPUT */
68 /* Letter to use in finding device name of first pty,
69 if system supports pty's. 'p' means it is /dev/ptyp0 */
71 /* #define FIRST_PTY_LETTER 'p' */
74 * Define HAVE_TERMIO if the system provides sysV-style ioctls
75 * for terminal control.
78 #define HAVE_TERMIO
81 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
82 * Look in <sys/time.h> for a timeval structure.
85 /* #define HAVE_TIMEVAL */
88 * Define HAVE_SELECT if the system supports the `select' system call.
91 /* #define HAVE_SELECT */
94 * Define HAVE_PTYS if the system supports pty devices.
97 /* #define HAVE_PTYS */
99 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
101 /* #define HAVE_SOCKETS */
104 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
105 * The 4.2 opendir, etc., library functions.
108 #define NONSYSTEM_DIR_LIBRARY
110 /* Define this symbol if your system has the functions bcopy, etc. */
112 /* #define BSTRING */
114 /* subprocesses should be defined if you want to
115 have code for asynchronous subprocesses
116 (as used in M-x compile and M-x shell).
117 This is supposed to work now on system V release 2. */
119 #define subprocesses
121 /* If your system uses COFF (Common Object File Format) then define the
122 preprocessor symbol "COFF". */
124 /* #define COFF */
126 /* Xenix requires completely different unexec code
127 which lives in a separate file. Specify the file name. */
129 #define UNEXEC unexenix.o
131 /* define MAIL_USE_FLOCK if the mailer uses flock
132 to interlock access to /usr/spool/mail/$USER.
133 The alternative is that a lock file named
134 /usr/spool/mail/$USER.lock. */
136 #define MAIL_USE_FLOCK
138 /* Define CLASH_DETECTION if you want lock files to be written
139 so that Emacs can tell instantly when you try to modify
140 a file that someone else has modified in his Emacs. */
142 /* The way this is implemented requires long filenames... */
143 /* #define CLASH_DETECTION */
145 /* Define SHORTNAMES if the C compiler can distinguish only
146 short names. It means that the stuff in ../shortnames
147 must be run to convert the long names to short ones. */
149 /* #define SHORTNAMES */
151 /* We do not use the Berkeley (and usg5.2.2) interface to nlist. */
153 /* #define NLIST_STRUCT */
155 /* Compensate for one incompatibility between Xenix and V.0. */
156 #define n_zeroes n_name[0]
158 /* The file containing the kernel's symbol table is called /xenix. */
160 #define KERNEL_FILE "/xenix"
162 /* The symbol in the kernel where the load average is found
163 is named avenrun. */
165 #define LDAV_SYMBOL "_avenrun"
167 /* Special hacks needed to make Emacs run on this system. */
170 * Make the sigsetmask function go away. Don't know what the
171 * ramifications of this are, but doesn't seem possible to
172 * emulate it properly anyway at this point.
175 #define sigsetmask(mask) /* Null expansion */
177 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
178 but they will run slower. */
180 #define _setjmp setjmp
181 #define _longjmp longjmp
183 /* On USG systems the system calls are interruptable by signals
184 that the user program has elected to catch. Thus the system call
185 must be retried in these cases. To handle this without massive
186 changes in the source code, we remap the standard system call names
187 to names for our own functions in sysdep.c that do the system call
188 with retries. */
190 #define read sys_read
191 #define open sys_open
192 #define write sys_write
194 #define INTERRUPTIBLE_OPEN
195 #define INTERRUPTIBLE_IO
197 /* On USG systems these have different names */
199 #define index strchr
200 #define rindex strrchr
202 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
204 #define ADDR_CORRECT(x) (x)
206 /* Prevent -lg from being used for debugging. Not implemented? */
208 #define LIBS_DEBUG
210 /* Switches for linking temacs. */
212 #define LD_SWITCH_SYSTEM -i
214 /* Xenix implements sysV style IPC. */
216 #define HAVE_SYSVIPC
218 /* Use terminfo instead of termcap. */
220 /* Tell Emacs to use Terminfo. */
222 #define TERMINFO
224 /* Tell Xenix curses to BE Terminfo. */
225 #define M_TERMINFO
227 /* Control program name for etc/fakemail to run. */
229 #ifdef SMAIL
230 #define MAIL_PROGRAM_NAME "/usr/bin/smail -q0"
231 #else
232 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
233 #endif
235 /* Some variants have TIOCGETC, but the structures to go with it
236 are not declared. */
238 #define BROKEN_TIOCGETC