*** empty log message ***
[emacs.git] / src / s / xenix.h
blob6d77ef50acc3c9875e8c437aa771d6b8e2a20376
1 /* Definitions file for GNU Emacs running SCO Xenix 386 Release 2.2
2 Copyright (C) 1988, 1999, 2001, 2002, 2003, 2004,
3 2005, 2006, 2007 Free Software Foundation, Inc.
5 This file is part of GNU Emacs.
7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
23 * Define symbols to identify the version of Unix this is.
24 * Define all the symbols that apply correctly.
27 /* #define UNIPLUS */
28 #define XENIX
29 #define USG5
30 #define USG
31 /* #define HPUX */
32 /* #define UMAX */
33 /* #define BSD4_1 */
34 /* #define BSD4_2 */
35 /* #define BSD4_3 */
36 /* #define BSD_SYSTEM */
37 /* #define VMS */
39 /* SYSTEM_TYPE should indicate the kind of system you are using.
40 It sets the Lisp variable system-type. */
42 #define SYSTEM_TYPE "xenix"
44 /* NOMULTIPLEJOBS should be defined if your system's shell
45 does not have "job control" (the ability to stop a program,
46 run some other program, then continue the first one). */
48 #define NOMULTIPLEJOBS
50 /* Emacs can read input using SIGIO and buffering characters itself,
51 or using CBREAK mode and making C-g cause SIGINT.
52 The choice is controlled by the variable interrupt_input.
53 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
55 SIGIO can be used only on systems that implement it (4.2 and 4.3).
56 CBREAK mode has two disadvantages:
57 1) At least in 4.2, it is impossible to handle the Meta key properly.
58 I hear that in system V this problem does not exist.
59 2) Control-G causes output to be discarded.
60 I do not know whether this can be fixed in system V.
62 Another method of doing input is planned but not implemented.
63 It would have Emacs fork off a separate process
64 to read the input and send it to the true Emacs process
65 through a pipe.
68 /* #define INTERRUPT_INPUT */
70 /* Letter to use in finding device name of first pty,
71 if system supports pty's. 'p' means it is /dev/ptyp0 */
73 /* #define FIRST_PTY_LETTER 'p' */
76 * Define HAVE_TERMIO if the system provides sysV-style ioctls
77 * for terminal control.
80 #define HAVE_TERMIO
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
99 /* Define this symbol if your system has the functions bcopy, etc. */
101 /* #define BSTRING */
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. */
108 #define subprocesses
110 /* If your system uses COFF (Common Object File Format) then define the
111 preprocessor symbol "COFF". */
113 /* #define COFF */
115 /* Xenix requires completely different unexec code
116 which lives in a separate file. Specify the file name. */
118 #define UNEXEC unexenix.o
120 /* define MAIL_USE_FLOCK if the mailer uses flock
121 to interlock access to /usr/spool/mail/$USER.
122 The alternative is that a lock file named
123 /usr/spool/mail/$USER.lock. */
125 #define MAIL_USE_FLOCK
127 /* Define CLASH_DETECTION if you want lock files to be written
128 so that Emacs can tell instantly when you try to modify
129 a file that someone else has modified in his Emacs. */
131 /* The way this is implemented requires long filenames... */
132 /* #define CLASH_DETECTION */
134 /* Define SHORTNAMES if the C compiler can distinguish only
135 short names. It means that the stuff in ../shortnames
136 must be run to convert the long names to short ones. */
138 /* #define SHORTNAMES */
140 /* Compensate for one incompatibility between Xenix and V.0. */
141 #define n_zeroes n_name[0]
143 /* The file containing the kernel's symbol table is called /xenix. */
145 #define KERNEL_FILE "/xenix"
147 /* The symbol in the kernel where the load average is found
148 is named avenrun. */
150 #define LDAV_SYMBOL "_avenrun"
152 /* Special hacks needed to make Emacs run on this system. */
155 * Make the sigsetmask function go away. Don't know what the
156 * ramifications of this are, but doesn't seem possible to
157 * emulate it properly anyway at this point.
160 #define sigsetmask(mask) /* Null expansion */
162 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
163 but they will run slower. */
165 #define _setjmp setjmp
166 #define _longjmp longjmp
168 /* On USG systems these have different names */
170 #define index strchr
171 #define rindex strrchr
173 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
175 #define ADDR_CORRECT(x) (x)
177 /* Prevent -lg from being used for debugging. Not implemented? */
179 #define LIBS_DEBUG
181 /* Switches for linking temacs. */
183 #define LD_SWITCH_SYSTEM -i
185 /* Xenix implements sysV style IPC. */
187 #define HAVE_SYSVIPC
189 /* Use terminfo instead of termcap. */
191 /* Tell Emacs to use Terminfo. */
193 #define TERMINFO
195 /* Tell Xenix curses to BE Terminfo. */
196 #define M_TERMINFO
198 /* Control program name for etc/fakemail to run. */
200 #ifdef SMAIL
201 #define MAIL_PROGRAM_NAME "/usr/bin/smail -q0"
202 #else
203 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
204 #endif
206 /* Some variants have TIOCGETC, but the structures to go with it
207 are not declared. */
209 #define BROKEN_TIOCGETC
211 /* arch-tag: 71d3985d-4e53-4572-8276-5dce26bbd076
212 (do not change this comment) */