5503
|
1 /* System description file for MS-DOS
|
|
2
|
64769
|
3 Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004,
|
75348
|
4 2005, 2006, 2007 Free Software Foundation, Inc.
|
5503
|
5
|
|
6 This file is part of GNU Emacs.
|
|
7
|
|
8 GNU Emacs is free software; you can redistribute it and/or modify
|
|
9 it under the terms of the GNU General Public License as published by
|
78259
|
10 the Free Software Foundation; either version 3, or (at your option)
|
5503
|
11 any later version.
|
|
12
|
|
13 GNU Emacs is distributed in the hope that it will be useful,
|
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 GNU General Public License for more details.
|
|
17
|
|
18 You should have received a copy of the GNU General Public License
|
|
19 along with GNU Emacs; see the file COPYING. If not, write to
|
64083
|
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
21 Boston, MA 02110-1301, USA. */
|
5503
|
22
|
|
23 /* Note: lots of stuff here was taken from s-msdos.h in demacs. */
|
|
24
|
|
25
|
|
26 /*
|
|
27 * Define symbols to identify the version of Unix this is.
|
|
28 * Define all the symbols that apply correctly.
|
|
29 */
|
|
30
|
|
31 /* #define UNIPLUS */
|
|
32 /* #define USG5 */
|
|
33 /* #define USG */
|
|
34 /* #define HPUX */
|
|
35 /* #define UMAX */
|
|
36 /* #define BSD4_1 */
|
|
37 /* #define BSD4_2 */
|
|
38 /* #define BSD4_3 */
|
16220
|
39 /* #define BSD_SYSTEM */
|
5503
|
40 /* #define VMS */
|
|
41 #ifndef MSDOS
|
|
42 #define MSDOS
|
|
43 #endif
|
9798
|
44
|
13177
|
45 #ifdef __GO32__
|
|
46 #ifndef __DJGPP__
|
|
47 #define __DJGPP__ 1 /* V2 defines __DJGPP__ == 2 */
|
|
48 #endif
|
|
49 #else
|
|
50 You lose; /* Emacs for DOS must be compiled with DJGPP */
|
|
51 #endif
|
|
52
|
9798
|
53 #define DOS_NT /* MSDOS or WINDOWSNT */
|
16220
|
54 #undef BSD_SYSTEM
|
5503
|
55 #undef VMS
|
|
56
|
|
57 /* SYSTEM_TYPE should indicate the kind of system you are using.
|
|
58 It sets the Lisp variable system-type. */
|
|
59
|
|
60 #define SYSTEM_TYPE "ms-dos"
|
|
61
|
17453
|
62 #define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos();syms_of_win16select()
|
5503
|
63
|
|
64 /* NOMULTIPLEJOBS should be defined if your system's shell
|
|
65 does not have "job control" (the ability to stop a program,
|
|
66 run some other program, then continue the first one). */
|
|
67
|
|
68 #define NOMULTIPLEJOBS
|
|
69
|
|
70 /* Emacs can read input using SIGIO and buffering characters itself,
|
|
71 or using CBREAK mode and making C-g cause SIGINT.
|
|
72 The choice is controlled by the variable interrupt_input.
|
|
73 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
|
|
74
|
|
75 SIGIO can be used only on systems that implement it (4.2 and 4.3).
|
14036
|
76 CBREAK mode has two disadvantages
|
5503
|
77 1) At least in 4.2, it is impossible to handle the Meta key properly.
|
|
78 I hear that in system V this problem does not exist.
|
|
79 2) Control-G causes output to be discarded.
|
|
80 I do not know whether this can be fixed in system V.
|
|
81
|
|
82 Another method of doing input is planned but not implemented.
|
|
83 It would have Emacs fork off a separate process
|
|
84 to read the input and send it to the true Emacs process
|
|
85 through a pipe.
|
|
86 */
|
|
87
|
|
88 /* #define INTERRUPT_INPUT */
|
|
89
|
|
90 /* Letter to use in finding device name of first pty,
|
|
91 if system supports pty's. 'a' means it is /dev/ptya0 */
|
|
92
|
|
93 /* #define FIRST_PTY_LETTER 'a' */
|
|
94
|
|
95 /*
|
|
96 * Define HAVE_PTYS if the system supports pty devices.
|
|
97 */
|
|
98
|
|
99 /* #define HAVE_PTYS */
|
|
100
|
|
101 /*
|
|
102 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
|
|
103 * The 4.2 opendir, etc., library functions.
|
|
104 */
|
|
105
|
|
106 /* #define NONSYSTEM_DIR_LIBRARY */
|
|
107
|
|
108 #define SYSV_SYSTEM_DIR
|
|
109
|
|
110 /* Define this symbol if your system has the functions bcopy, etc. */
|
|
111
|
|
112 #define BSTRING
|
|
113
|
8250
|
114 /* Define this is the compiler understands `volatile'. */
|
|
115 #define HAVE_VOLATILE
|
|
116
|
|
117
|
5503
|
118 /* subprocesses should be defined if you want to
|
|
119 have code for asynchronous subprocesses
|
|
120 (as used in M-x compile and M-x shell).
|
|
121 This is generally OS dependent, and not supported
|
|
122 under most USG systems. */
|
|
123
|
|
124 #undef subprocesses
|
|
125
|
|
126 /* If your system uses COFF (Common Object File Format) then define the
|
|
127 preprocessor symbol "COFF". */
|
|
128
|
|
129 #define COFF
|
|
130
|
|
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. */
|
|
135
|
|
136 /* #define MAIL_USE_FLOCK */
|
|
137
|
|
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. */
|
|
141
|
|
142 /* #define CLASH_DETECTION */
|
|
143
|
|
144 /* Here, on a separate page, add any special hacks needed
|
|
145 to make Emacs work on this system. For example,
|
|
146 you might define certain system call names that don't
|
|
147 exist on your system, or that do different things on
|
|
148 your system and must be used only through an encapsulation
|
|
149 (Which you should place, by convention, in sysdep.c). */
|
|
150
|
15172
|
151 /* Avoid incompatibilities between gmalloc.c and system header files
|
|
152 in how to declare valloc. */
|
|
153 #define GMALLOC_INHIBIT_VALLOC
|
|
154
|
5503
|
155 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
|
|
156 but they will run slower. */
|
|
157
|
|
158 #define _setjmp setjmp
|
|
159 #define _longjmp longjmp
|
|
160
|
14970
|
161 #if __DJGPP__ < 2
|
|
162
|
5503
|
163 #define NO_MODE_T
|
|
164
|
14970
|
165 /* New chdir () routine.
|
|
166 DJGPP v2.0 and later doesn't need it because its chdir() does
|
|
167 set the drive itself. */
|
5503
|
168 #ifdef chdir
|
|
169 #undef chdir
|
|
170 #endif
|
|
171 #define chdir sys_chdir
|
|
172
|
14970
|
173 #define LIBS_SYSTEM -lpc /* isn't required in DJGPP v2.0, either */
|
|
174
|
|
175 #endif /* __DJGPP__ < 2 */
|
|
176
|
|
177 #if __DJGPP__ > 1
|
|
178
|
|
179 #define DATA_START (&etext + 1)
|
|
180 #define TEXT_START &start
|
|
181 #define TEXT_END &etext
|
|
182
|
|
183 #define _NAIVE_DOS_REGS
|
|
184
|
|
185 #else /* not __DJGPP__ > 1 */
|
5503
|
186
|
|
187 /* This somehow needs to be defined even though we use COFF. */
|
|
188 #define TEXT_START -1
|
|
189
|
14970
|
190 #endif /* not __DJGPP__ > 1 */
|
|
191
|
5503
|
192 #define ORDINARY_LINK
|
|
193
|
9572
|
194 /* command.com does not understand `...` so we define this. */
|
5503
|
195 #define LIB_GCC -Lgcc
|
|
196 #define DONT_NEED_ENVIRON
|
|
197 #define SEPCHAR ';'
|
|
198
|
|
199 #define NULL_DEVICE "nul"
|
|
200
|
14970
|
201 #if __DJGPP__ < 2
|
5503
|
202 #define O_RDONLY 0x0001
|
|
203 #define O_WRONLY 0x0002
|
|
204 #define O_RDWR 0x0004
|
|
205 #define O_CREAT 0x0100
|
|
206 #define O_TRUNC 0x0200
|
|
207 #define O_EXCL 0x0400
|
|
208 #define O_APPEND 0x0800
|
|
209 #define O_TEXT 0x4000
|
|
210 #define O_BINARY 0x8000
|
14970
|
211 #define NO_MATHERR
|
|
212 #endif
|
5503
|
213
|
|
214 #define HAVE_INVERSE_HYPERBOLIC
|
|
215 #define FLOAT_CHECK_DOMAIN
|
|
216
|
|
217 /* When $TERM is "internal" then this is substituted: */
|
|
218 #define INTERNAL_TERMINAL "pc|bios|IBM PC with colour display:\
|
26730
|
219 :co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:\
|
27638
|
220 :se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>:\
|
26730
|
221 :AB=<BG %d>:AF=<FG %d>:op=<DefC>:"
|
5503
|
222
|
|
223 /* Define this to a function (Fdowncase, Fupcase) if your file system
|
|
224 likes that */
|
15220
069fc3f2c2b4
(FILE_SYSTEM_CASE): Call Fmsdos_downcase_filename instead of Fdowncase.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
225 #define FILE_SYSTEM_CASE Fmsdos_downcase_filename
|
5503
|
226
|
10500
|
227 /* Define this to be the separator between devices and paths */
|
|
228 #define DEVICE_SEP ':'
|
|
229
|
|
230 /* We'll support either convention on MSDOG. */
|
|
231 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
|
|
232 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
|
|
233
|
13041
|
234 /* Call init_gettimeofday when TZ changes. */
|
14970
|
235 #if __DJGPP__ < 2
|
13041
|
236 #define LOCALTIME_CACHE
|
|
237 #define tzset init_gettimeofday
|
14970
|
238 #endif
|
13041
|
239
|
6382
|
240 /* bcopy under djgpp is quite safe */
|
|
241 #define GAP_USE_BCOPY
|
|
242 #define BCOPY_UPWARD_SAFE 1
|
|
243 #define BCOPY_DOWNWARD_SAFE 1
|
8199
|
244
|
8796
|
245 /* Mode line description of a buffer's type. */
|
|
246 #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
|
|
247
|
14970
|
248 /* Do we have POSIX signals? */
|
|
249 #if __DJGPP__ > 1
|
|
250 #define POSIX_SIGNALS
|
|
251 #endif
|
|
252
|
8199
|
253 /* We have (the code to control) a mouse. */
|
|
254 #define HAVE_MOUSE
|
9572
|
255
|
13849
|
256 /* We canuse mouse menus. */
|
|
257 #define HAVE_MENUS
|
|
258
|
9572
|
259 /* We have support for faces. */
|
|
260 #define HAVE_FACES
|
|
261
|
|
262 /* Define one of these for easier conditionals. */
|
|
263 #ifdef HAVE_X_WINDOWS
|
|
264 /* We need a little extra space, see ../../lisp/loadup.el */
|
|
265 #define SYSTEM_PURESIZE_EXTRA 15000
|
|
266 #define LIBX11_SYSTEM -lxext -lsys
|
|
267 #else
|
|
268 /* We need a little extra space, see ../../lisp/loadup.el */
|
44631
|
269 #define SYSTEM_PURESIZE_EXTRA 50000
|
9572
|
270 #endif
|
28364
|
271
|
35553
|
272 /* Tell the garbage collector that setjmp is known to save all
|
28364
|
273 registers relevant for conservative garbage collection in the
|
|
274 jmp_buf. */
|
|
275
|
|
276 #define GC_SETJMP_WORKS 1
|
35451
|
277 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
|
52401
|
278
|
|
279 /* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0
|
|
280 (do not change this comment) */
|