0
|
1 /* System description file for MS-DOS
|
|
2
|
|
3 Copyright (C) 1993 Free Software Foundation, Inc.
|
|
4
|
|
5 This file is part of GNU Emacs.
|
|
6
|
|
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.
|
|
11
|
|
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.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: FSF 19.31. */
|
|
23
|
|
24 /* Note: lots of stuff here was taken from s-msdos.h in demacs. */
|
|
25
|
|
26
|
|
27 /*
|
|
28 * Define symbols to identify the version of Unix this is.
|
|
29 * Define all the symbols that apply correctly.
|
|
30 */
|
|
31
|
|
32 /* #define UNIPLUS */
|
|
33 /* #define USG5 */
|
|
34 /* #define USG */
|
|
35 /* #define HPUX */
|
|
36 /* #define UMAX */
|
|
37 /* #define BSD4_1 */
|
|
38 /* #define BSD4_2 */
|
|
39 /* #define BSD4_3 */
|
|
40 /* #define BSD */
|
|
41 #ifndef MSDOS
|
|
42 #define MSDOS
|
|
43 #endif
|
|
44
|
|
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
|
|
53 #define DOS_NT /* MSDOS or WINDOWSNT */
|
|
54 #undef BSD
|
|
55
|
|
56 /* SYSTEM_TYPE should indicate the kind of system you are using.
|
|
57 It sets the Lisp variable system-type. */
|
|
58
|
|
59 #define SYSTEM_TYPE "ms-dos"
|
|
60
|
|
61 #define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos()
|
|
62
|
|
63 /* Letter to use in finding device name of first pty,
|
|
64 if system supports pty's. 'a' means it is /dev/ptya0 */
|
|
65
|
|
66 /* #define FIRST_PTY_LETTER 'a' */
|
|
67
|
|
68 /*
|
|
69 * Define HAVE_PTYS if the system supports pty devices.
|
|
70 */
|
|
71
|
|
72 /* #define HAVE_PTYS */
|
|
73
|
|
74 /* MSDOS has dirent.h but doesn't behave otherwise like the SYSV
|
|
75 directory functions. We have special tests for this in
|
|
76 sysdir.h. */
|
|
77
|
|
78 #undef SYSV_SYSTEM_DIR
|
|
79
|
|
80 /* Define this is the compiler understands `volatile'. */
|
|
81 #define HAVE_VOLATILE
|
|
82
|
|
83 #define NO_SUBPROCESSES
|
|
84
|
|
85 /* If your system uses COFF (Common Object File Format) then define the
|
|
86 preprocessor symbol "COFF". */
|
|
87
|
|
88 #define COFF
|
|
89
|
|
90 /* define MAIL_USE_FLOCK if the mailer uses flock
|
|
91 to interlock access to /usr/spool/mail/$USER.
|
|
92 The alternative is that a lock file named
|
|
93 /usr/spool/mail/$USER.lock. */
|
|
94
|
|
95 /* #define MAIL_USE_FLOCK */
|
|
96
|
|
97 /* Here, on a separate page, add any special hacks needed
|
|
98 to make Emacs work on this system. For example,
|
|
99 you might define certain system call names that don't
|
|
100 exist on your system, or that do different things on
|
|
101 your system and must be used only through an encapsulation
|
|
102 (Which you should place, by convention, in sysdep.c). */
|
|
103
|
|
104 /* Avoid incompatibilities between gmalloc.c and system header files
|
|
105 in how to declare valloc. */
|
|
106 #define GMALLOC_INHIBIT_VALLOC
|
|
107
|
|
108 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
|
|
109 but they will run slower. */
|
|
110
|
|
111 #define _setjmp setjmp
|
|
112 #define _longjmp longjmp
|
|
113
|
|
114 #if __DJGPP__ < 2
|
|
115
|
|
116 #define NO_MODE_T
|
|
117
|
|
118 /* New chdir () routine.
|
|
119 DJGPP v2.0 and later doesn't need it because its chdir() does
|
|
120 set the drive itself. */
|
|
121 #ifdef chdir
|
|
122 #undef chdir
|
|
123 #endif
|
|
124 #define chdir sys_chdir
|
|
125
|
163
|
126 #define LIBS_SYSTEM "-lpc" /* isn't required in DJGPP v2.0, either */
|
0
|
127
|
|
128 #endif /* __DJGPP__ < 2 */
|
|
129
|
|
130 #if __DJGPP__ > 1
|
|
131
|
|
132 #define DATA_START (&etext + 1)
|
|
133 #define TEXT_START &start
|
|
134 #define TEXT_END &etext
|
|
135
|
|
136 #define _NAIVE_DOS_REGS
|
|
137
|
|
138 #else /* not __DJGPP__ > 1 */
|
|
139
|
|
140 /* This somehow needs to be defined even though we use COFF. */
|
|
141 #define TEXT_START -1
|
|
142
|
|
143 #endif /* not __DJGPP__ > 1 */
|
|
144
|
|
145 #define ORDINARY_LINK
|
|
146
|
|
147 /* command.com does not understand `...` so we define this. */
|
163
|
148 #define LIB_GCC "-Lgcc"
|
0
|
149 #define DONT_NEED_ENVIRON
|
|
150 #define SEPCHAR ';'
|
|
151
|
|
152 #define NULL_DEVICE "nul"
|
|
153 #define EXEC_SUFFIXES ".exe:.com:.bat:"
|
|
154
|
|
155 #if __DJGPP__ < 2
|
|
156 #define O_RDONLY 0x0001
|
|
157 #define O_WRONLY 0x0002
|
|
158 #define O_RDWR 0x0004
|
|
159 #define O_CREAT 0x0100
|
|
160 #define O_TRUNC 0x0200
|
|
161 #define O_EXCL 0x0400
|
|
162 #define O_APPEND 0x0800
|
|
163 #define O_TEXT 0x4000
|
|
164 #define O_BINARY 0x8000
|
|
165 #define NO_MATHERR
|
|
166 #endif
|
|
167
|
|
168 #define HAVE_INVERSE_HYPERBOLIC
|
|
169 #define FLOAT_CHECK_DOMAIN
|
|
170
|
|
171 /* When $TERM is "internal" then this is substituted: */
|
|
172 #define INTERNAL_TERMINAL "pc|bios|IBM PC with colour display:\
|
|
173 :co#80:li#25:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:"
|
|
174
|
|
175 /* Define this to a function (Fdowncase, Fupcase) if your file system
|
|
176 likes that */
|
|
177 #define FILE_SYSTEM_CASE Fmsdos_downcase_filename
|
|
178
|
|
179 /* Define this to be the separator between devices and paths */
|
|
180 #define DEVICE_SEP ':'
|
|
181
|
|
182 /* We'll support either convention on MSDOG. */
|
|
183 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
|
|
184 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
|
|
185
|
|
186 /* Call init_gettimeofday when TZ changes. */
|
|
187 #if __DJGPP__ < 2
|
|
188 #define LOCALTIME_CACHE
|
|
189 #define tzset init_gettimeofday
|
|
190 #endif
|
|
191
|
|
192 /* bcopy under djgpp is quite safe */
|
|
193 #define GAP_USE_BCOPY
|
|
194 #define BCOPY_UPWARD_SAFE 1
|
|
195 #define BCOPY_DOWNWARD_SAFE 1
|
|
196
|
|
197 /* Mode line description of a buffer's type. */
|
|
198 #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
|
|
199
|
|
200 /* Do we have POSIX signals? */
|
|
201 #if __DJGPP__ > 1
|
|
202 #define POSIX_SIGNALS
|
|
203 #endif
|
|
204
|
|
205 /* We have (the code to control) a mouse. */
|
|
206 #define HAVE_MOUSE
|
|
207
|
|
208 /* We canuse mouse menus. */
|
|
209 #define HAVE_MENUS
|
|
210
|
|
211 /* We have support for faces. */
|
|
212 #define HAVE_FACES
|
|
213
|
|
214 /* Define one of these for easier conditionals. */
|
|
215 #ifdef HAVE_X_WINDOWS
|
|
216 /* We need a little extra space, see ../../lisp/loadup.el */
|
|
217 #define SYSTEM_PURESIZE_EXTRA 15000
|
|
218 #define HAVE_X11R5
|
163
|
219 #define LIBX11_SYSTEM "-lxext -lsys"
|
0
|
220 #else
|
|
221 /* We need a little extra space, see ../../lisp/loadup.el */
|
|
222 #define SYSTEM_PURESIZE_EXTRA 85000
|
|
223 #endif
|