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 2, or (at your option)
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. */
22 * Define symbols to identify the version of Unix this is.
23 * Define all the symbols that apply correctly.
35 /* #define BSD_SYSTEM */
38 /* SYSTEM_TYPE should indicate the kind of system you are using.
39 It sets the Lisp variable system-type. */
41 #define SYSTEM_TYPE "xenix"
43 /* NOMULTIPLEJOBS should be defined if your system's shell
44 does not have "job control" (the ability to stop a program,
45 run some other program, then continue the first one). */
47 #define NOMULTIPLEJOBS
49 /* Emacs can read input using SIGIO and buffering characters itself,
50 or using CBREAK mode and making C-g cause SIGINT.
51 The choice is controlled by the variable interrupt_input.
52 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
54 SIGIO can be used only on systems that implement it (4.2 and 4.3).
55 CBREAK mode has two disadvantages:
56 1) At least in 4.2, it is impossible to handle the Meta key properly.
57 I hear that in system V this problem does not exist.
58 2) Control-G causes output to be discarded.
59 I do not know whether this can be fixed in system V.
61 Another method of doing input is planned but not implemented.
62 It would have Emacs fork off a separate process
63 to read the input and send it to the true Emacs process
67 /* #define INTERRUPT_INPUT */
69 /* Letter to use in finding device name of first pty,
70 if system supports pty's. 'p' means it is /dev/ptyp0 */
72 /* #define FIRST_PTY_LETTER 'p' */
75 * Define HAVE_TERMIO if the system provides sysV-style ioctls
76 * for terminal control.
82 * Define HAVE_PTYS if the system supports pty devices.
85 /* #define HAVE_PTYS */
87 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
89 /* #define HAVE_SOCKETS */
92 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
93 * The 4.2 opendir, etc., library functions.
96 #define NONSYSTEM_DIR_LIBRARY
98 /* Define this symbol if your system has the functions bcopy, etc. */
100 /* #define BSTRING */
102 /* subprocesses should be defined if you want to
103 have code for asynchronous subprocesses
104 (as used in M-x compile and M-x shell).
105 This is supposed to work now on system V release 2. */
109 /* If your system uses COFF (Common Object File Format) then define the
110 preprocessor symbol "COFF". */
114 /* Xenix requires completely different unexec code
115 which lives in a separate file. Specify the file name. */
117 #define UNEXEC unexenix.o
119 /* define MAIL_USE_FLOCK if the mailer uses flock
120 to interlock access to /usr/spool/mail/$USER.
121 The alternative is that a lock file named
122 /usr/spool/mail/$USER.lock. */
124 #define MAIL_USE_FLOCK
126 /* Define CLASH_DETECTION if you want lock files to be written
127 so that Emacs can tell instantly when you try to modify
128 a file that someone else has modified in his Emacs. */
130 /* The way this is implemented requires long filenames... */
131 /* #define CLASH_DETECTION */
133 /* Define SHORTNAMES if the C compiler can distinguish only
134 short names. It means that the stuff in ../shortnames
135 must be run to convert the long names to short ones. */
137 /* #define SHORTNAMES */
139 /* We do not use the Berkeley (and usg5.2.2) interface to nlist. */
141 /* #define NLIST_STRUCT */
143 /* Compensate for one incompatibility between Xenix and V.0. */
144 #define n_zeroes n_name[0]
146 /* The file containing the kernel's symbol table is called /xenix. */
148 #define KERNEL_FILE "/xenix"
150 /* The symbol in the kernel where the load average is found
153 #define LDAV_SYMBOL "_avenrun"
155 /* Special hacks 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
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 */
188 #define rindex strrchr
190 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
192 #define ADDR_CORRECT(x) (x)
194 /* Prevent -lg from being used for debugging. Not implemented? */
198 /* Switches for linking temacs. */
200 #define LD_SWITCH_SYSTEM -i
202 /* Xenix implements sysV style IPC. */
206 /* Use terminfo instead of termcap. */
208 /* Tell Emacs to use Terminfo. */
212 /* Tell Xenix curses to BE Terminfo. */
215 /* Control program name for etc/fakemail to run. */
218 #define MAIL_PROGRAM_NAME "/usr/bin/smail -q0"
220 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
223 /* Some variants have TIOCGETC, but the structures to go with it
226 #define BROKEN_TIOCGETC