Commit | Line | Data |
---|---|---|
1b94449f RS |
1 | /* System description file for MS-DOS |
2 | ||
92b47a4a | 3 | Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004, |
aaef169d | 4 | 2005, 2006 Free Software Foundation, Inc. |
1b94449f RS |
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 | |
10 | the Free Software Foundation; either version 2, or (at your option) | |
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 | |
364c38d3 LK |
20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | Boston, MA 02110-1301, USA. */ | |
1b94449f RS |
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 */ | |
6df54671 | 39 | /* #define BSD_SYSTEM */ |
1b94449f RS |
40 | /* #define VMS */ |
41 | #ifndef MSDOS | |
42 | #define MSDOS | |
43 | #endif | |
fcc182b3 | 44 | |
920b97ab KS |
45 | #ifdef __GO32__ |
46 | #ifndef __DJGPP__ | |
47 | #define __DJGPP__ 1 /* V2 defines __DJGPP__ == 2 */ | |
920b97ab KS |
48 | #endif |
49 | #else | |
50 | You lose; /* Emacs for DOS must be compiled with DJGPP */ | |
51 | #endif | |
52 | ||
fcc182b3 | 53 | #define DOS_NT /* MSDOS or WINDOWSNT */ |
6df54671 | 54 | #undef BSD_SYSTEM |
1b94449f RS |
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 | ||
76e5a001 | 62 | #define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos();syms_of_win16select() |
1b94449f RS |
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). | |
8e6208c5 | 76 | CBREAK mode has two disadvantages |
1b94449f RS |
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 | ||
1b94449f RS |
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 | ||
17b9d003 RS |
114 | /* Define this is the compiler understands `volatile'. */ |
115 | #define HAVE_VOLATILE | |
116 | ||
117 | ||
1b94449f RS |
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 | \f | |
7630a042 RS |
151 | /* Avoid incompatibilities between gmalloc.c and system header files |
152 | in how to declare valloc. */ | |
153 | #define GMALLOC_INHIBIT_VALLOC | |
154 | ||
1b94449f RS |
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 | ||
7a05f3c7 RS |
161 | #if __DJGPP__ < 2 |
162 | ||
1b94449f RS |
163 | #define NO_MODE_T |
164 | ||
7a05f3c7 RS |
165 | /* New chdir () routine. |
166 | DJGPP v2.0 and later doesn't need it because its chdir() does | |
167 | set the drive itself. */ | |
1b94449f RS |
168 | #ifdef chdir |
169 | #undef chdir | |
170 | #endif | |
171 | #define chdir sys_chdir | |
172 | ||
7a05f3c7 RS |
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 */ | |
1b94449f RS |
186 | |
187 | /* This somehow needs to be defined even though we use COFF. */ | |
188 | #define TEXT_START -1 | |
189 | ||
7a05f3c7 RS |
190 | #endif /* not __DJGPP__ > 1 */ |
191 | ||
1b94449f RS |
192 | #define ORDINARY_LINK |
193 | ||
87485d6f | 194 | /* command.com does not understand `...` so we define this. */ |
1b94449f RS |
195 | #define LIB_GCC -Lgcc |
196 | #define DONT_NEED_ENVIRON | |
197 | #define SEPCHAR ';' | |
198 | ||
199 | #define NULL_DEVICE "nul" | |
1b94449f | 200 | |
7a05f3c7 | 201 | #if __DJGPP__ < 2 |
1b94449f RS |
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 | |
7a05f3c7 RS |
211 | #define NO_MATHERR |
212 | #endif | |
1b94449f RS |
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:\ | |
89774ec3 | 219 | :co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:\ |
38fd211b | 220 | :se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>:\ |
89774ec3 | 221 | :AB=<BG %d>:AF=<FG %d>:op=<DefC>:" |
1b94449f RS |
222 | |
223 | /* Define this to a function (Fdowncase, Fupcase) if your file system | |
224 | likes that */ | |
2f019854 | 225 | #define FILE_SYSTEM_CASE Fmsdos_downcase_filename |
1b94449f | 226 | |
29675256 RS |
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 | ||
6b8ac9d2 | 234 | /* Call init_gettimeofday when TZ changes. */ |
7a05f3c7 | 235 | #if __DJGPP__ < 2 |
6b8ac9d2 PE |
236 | #define LOCALTIME_CACHE |
237 | #define tzset init_gettimeofday | |
7a05f3c7 | 238 | #endif |
6b8ac9d2 | 239 | |
a7d40caa KH |
240 | /* bcopy under djgpp is quite safe */ |
241 | #define GAP_USE_BCOPY | |
242 | #define BCOPY_UPWARD_SAFE 1 | |
243 | #define BCOPY_DOWNWARD_SAFE 1 | |
eb246adb | 244 | |
b77c5660 KH |
245 | /* Mode line description of a buffer's type. */ |
246 | #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") | |
247 | ||
7a05f3c7 RS |
248 | /* Do we have POSIX signals? */ |
249 | #if __DJGPP__ > 1 | |
250 | #define POSIX_SIGNALS | |
251 | #endif | |
252 | ||
eb246adb RS |
253 | /* We have (the code to control) a mouse. */ |
254 | #define HAVE_MOUSE | |
87485d6f | 255 | |
61c88d95 RS |
256 | /* We canuse mouse menus. */ |
257 | #define HAVE_MENUS | |
258 | ||
87485d6f MW |
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 HAVE_X11R5 | |
267 | #define LIBX11_SYSTEM -lxext -lsys | |
268 | #else | |
269 | /* We need a little extra space, see ../../lisp/loadup.el */ | |
9d45f16b | 270 | #define SYSTEM_PURESIZE_EXTRA 50000 |
87485d6f | 271 | #endif |
4b3fd719 | 272 | |
c3d0ee51 | 273 | /* Tell the garbage collector that setjmp is known to save all |
4b3fd719 GM |
274 | registers relevant for conservative garbage collection in the |
275 | jmp_buf. */ | |
276 | ||
277 | #define GC_SETJMP_WORKS 1 | |
2f169c38 | 278 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
ab5796a9 MB |
279 | |
280 | /* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0 | |
281 | (do not change this comment) */ |