annotate src/s/cxux.h @ 78977:8424c80a4751

*** empty log message ***
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 05 Oct 2007 15:42:54 +0000
parents f06998349cfc
children 68df465b9550 f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* Header file for Harris CXUX.
75227
e90d04cd455a Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68651
diff changeset
2 Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005,
e90d04cd455a Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 68651
diff changeset
3 2006, 2007 Free Software Foundation, Inc.
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 This file is part of GNU Emacs.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 GNU Emacs is free software; you can redistribute it and/or modify
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
78259
f06998349cfc Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75227
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 any later version.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 GNU General Public License for more details.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 along with GNU Emacs; see the file COPYING. If not, write to
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
20 Boston, MA 02110-1301, USA. */
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 /*
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 * Define symbols to identify the version of Unix this is.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 * Define all the symbols that apply correctly.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 /* #define UNIPLUS */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 #define USG5
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 #define USG
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 /* #define HPUX */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 /* #define UMAX */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 /* #define BSD4_1 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 /* #define BSD4_2 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 /* #define BSD4_3 */
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 14186
diff changeset
36 /* #define BSD_SYSTEM */
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 /* #define VMS */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 #ifndef _CX_UX
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 #define _CX_UX 1
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 #endif
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 /* Define this symbol if you are running CX/UX 7.0 or later (7.0 introduced
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 * support for ELF files, and while we still build emacs in COFF format, the
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 * way it is linked is different for 7.0).
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 /* #define USING_CX_UX_7 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 #ifdef USING_CX_UX_7
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 #define LINKER /usr/sde/coff/usr/bin/ld
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 #define LD_SWITCH_SYSTEM -L/usr/sde/coff/usr/lib -zzero_word
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 #define START_FILES pre-crt0.o /usr/sde/coff/usr/lib/crt0.o /usr/sde/coff/usr/lib/m88100.o
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 #else /* !USING_CX_UX_7 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 #ifdef _M88K
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 #define START_FILES pre-crt0.o /lib/crt0.o
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 #else
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 #define START_FILES cxux-crt0.o /lib/crt0.o
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 #endif
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 #endif /* USING_CX_UX_7 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 /* SYSTEM_TYPE should indicate the kind of system you are using.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 It sets the Lisp variable system-type. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 #define SYSTEM_TYPE "usg-unix-v"
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 #define C_SWITCH_SYSTEM -Xa
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 #define POSIX_SIGNALS
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 /* With POSIX signals, also need to use sigaction rather than signal to
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 * setup signal handlers
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 #define signal sys_signal
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 /* NOMULTIPLEJOBS should be defined if your system's shell
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 does not have "job control" (the ability to stop a program,
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 run some other program, then continue the first one). */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 /* #define NOMULTIPLEJOBS */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 /* Emacs can read input using SIGIO and buffering characters itself,
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 or using CBREAK mode and making C-g cause SIGINT.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 The choice is controlled by the variable interrupt_input.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 Emacs uses the presence or absence of the SIGIO macro to indicate
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 whether or not signal-driven I/O is possible. It uses
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 INTERRUPT_INPUT to decide whether to use it by default.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 SIGIO can be used only on systems that implement it (4.2 and 4.3).
14036
621a575db6f7 Comment fixes.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
92 CBREAK mode has two disadvantages
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 1) At least in 4.2, it is impossible to handle the Meta key properly.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 I hear that in system V this problem does not exist.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 2) Control-G causes output to be discarded.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 I do not know whether this can be fixed in system V.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 Another method of doing input is planned but not implemented.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 It would have Emacs fork off a separate process
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 to read the input and send it to the true Emacs process
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 through a pipe. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 #define INTERRUPT_INPUT
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 /* #define BROKEN_FIONREAD */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 /* Letter to use in finding device name of first pty,
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 if system supports pty's. 'a' means it is /dev/ptya0 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 #define FIRST_PTY_LETTER 'A'
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 #define PTY_ITERATION for (c = 'A'; c <= 'P'; c++) for (i = 0; i < 16; i++)
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 /*
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 * Define HAVE_TERMIOS if the system provides POSIX-style
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 * functions and macros for terminal control.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 *
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 * Define HAVE_TERMIO if the system provides sysV-style ioctls
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 * for terminal control.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 *
14036
621a575db6f7 Comment fixes.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
119 * Do not define both. HAVE_TERMIOS is preferred, if it is
5574
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 * supported on your system.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 #define HAVE_TERMIOS
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 /* #define HAVE_TERMIO */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 #define NO_TERMIO
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127 /*
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 * Define HAVE_PTYS if the system supports pty devices.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 #define HAVE_PTYS
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 /*
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135 * The 4.2 opendir, etc., library functions.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 /* #define NONSYSTEM_DIR_LIBRARY */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 #define SYSV_SYSTEM_DIR
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 /* Define this symbol if your system has the functions bcopy, etc. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 #define BSTRING
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146 /* subprocesses should be defined if you want to
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 have code for asynchronous subprocesses
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148 (as used in M-x compile and M-x shell).
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 This is generally OS dependent, and not supported
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 under most USG systems. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 #define subprocesses
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 /* If your system uses COFF (Common Object File Format) then define the
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 preprocessor symbol "COFF". */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 #define COFF
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 /* define MAIL_USE_FLOCK if the mailer uses flock
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 to interlock access to /usr/spool/mail/$USER.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 The alternative is that a lock file named
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 /usr/spool/mail/$USER.lock. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 #define MAIL_USE_FLOCK
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166 /* Define CLASH_DETECTION if you want lock files to be written
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 so that Emacs can tell instantly when you try to modify
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 a file that someone else has modified in his Emacs. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 #define CLASH_DETECTION
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
172 /* Define this if your operating system declares signal handlers to
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
173 have a type other than the usual. `The usual' is `void' for ANSI C
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
174 systems (i.e. when the __STDC__ macro is defined), and `int' for
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175 pre-ANSI systems. If you're using GCC on an older system, __STDC__
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176 will be defined, but the system's include files will still say that
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 signal returns int or whatever; in situations like that, define
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 this to be what the system's include files want. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179 /* #define SIGTYPE int */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 #define SIGTYPE void
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182 /* If the character used to separate elements of the executable path
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 is not ':', #define this to be the appropriate character constant. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
184 /* #define SEPCHAR ':' */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
186 /* Here, on a separate page, add any special hacks needed
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
187 to make Emacs work on this system. For example,
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
188 you might define certain system call names that don't
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189 exist on your system, or that do different things on
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190 your system and must be used only through an encapsulation
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191 (Which you should place, by convention, in sysdep.c). */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193 /* Yes! The Night Hawk has sockets! */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195 #define HAVE_SOCKETS
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197 /* The symbol in the kernel where the load average is found
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198 is named _avenrun. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
199
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 #define LDAV_SYMBOL "_avenrun"
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
201
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
202 #define KERNEL_FILE "/unix"
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
203
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204 /* There are too many kludges required to redefine malloc - use the system
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205 one */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 #define SYSTEM_MALLOC
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
208 #define _setjmp setjmp
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
209 #define _longjmp longjmp
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
210
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
211 /* const really does work, but I can't get configure to run the C compiler
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212 * with the right options so it figures that out.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
213 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
214 #undef const
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
215
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
216 #ifdef sigmask
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
217 #undef sigmask
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
218 #endif
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
219
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
220 /*
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
221 * <pwd.h> already declares getpwuid, and with a uid_t argument in ANSI C
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
222 * mode. Define this so xrdb.c will compile
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
223 */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
224 #ifdef __STDC__
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
225 #define DECLARE_GETPWUID_WITH_UID_T
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
226 #endif
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
227
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
228 /* Some compilers tend to put everything declared static
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
229 into the initialized data area, which becomes pure after dumping Emacs.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
230 On these systems, you must #define static as nothing to foil this.
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
231 Note that emacs carefully avoids static vars inside functions. */
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
232
a5a7ee5afff7 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
233 /* #define static */
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 29792
diff changeset
234
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 29792
diff changeset
235 /* arch-tag: 5febe5fe-f0b0-49cb-9280-9d5a9fa43710
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 29792
diff changeset
236 (do not change this comment) */