1 /* System description file for MS-DOS
3 Copyright (C) 1993 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)
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 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. */
22 /* Synched up with: FSF 19.31. */
24 /* Note: lots of stuff here was taken from s-msdos.h in demacs. */
28 * Define symbols to identify the version of Unix this is.
29 * Define all the symbols that apply correctly.
47 #define __DJGPP__ 1 /* V2 defines __DJGPP__ == 2 */
50 You lose; /* Emacs for DOS must be compiled with DJGPP */
53 #define DOS_NT /* MSDOS or WINDOWSNT */
56 /* SYSTEM_TYPE should indicate the kind of system you are using.
57 It sets the Lisp variable system-type. */
59 #define SYSTEM_TYPE "ms-dos"
61 #define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos()
63 /* Letter to use in finding device name of first pty,
64 if system supports pty's. 'a' means it is /dev/ptya0 */
66 /* #define FIRST_PTY_LETTER 'a' */
69 * Define HAVE_PTYS if the system supports pty devices.
72 /* #define HAVE_PTYS */
74 /* MSDOS has dirent.h but doesn't behave otherwise like the SYSV
75 directory functions. We have special tests for this in
78 #undef SYSV_SYSTEM_DIR
80 /* Define this is the compiler understands `volatile'. */
83 #define NO_SUBPROCESSES
85 /* If your system uses COFF (Common Object File Format) then define the
86 preprocessor symbol "COFF". */
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. */
95 /* #define MAIL_USE_FLOCK */
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). */
104 /* Avoid incompatibilities between gmalloc.c and system header files
105 in how to declare valloc. */
106 #define GMALLOC_INHIBIT_VALLOC
108 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
109 but they will run slower. */
111 #define _setjmp setjmp
112 #define _longjmp longjmp
118 /* New chdir () routine.
119 DJGPP v2.0 and later doesn't need it because its chdir() does
120 set the drive itself. */
124 #define chdir sys_chdir
126 #define LIBS_SYSTEM "-lpc" /* isn't required in DJGPP v2.0, either */
128 #endif /* __DJGPP__ < 2 */
132 #define DATA_START (&etext + 1)
133 #define TEXT_START &start
134 #define TEXT_END &etext
136 #define _NAIVE_DOS_REGS
138 #else /* not __DJGPP__ > 1 */
140 /* This somehow needs to be defined even though we use COFF. */
141 #define TEXT_START -1
143 #endif /* not __DJGPP__ > 1 */
145 #define ORDINARY_LINK
147 /* command.com does not understand `...` so we define this. */
148 #define LIB_GCC "-Lgcc"
149 #define DONT_NEED_ENVIRON
152 #define NULL_DEVICE "nul"
153 #define EXEC_SUFFIXES ".exe:.com:.bat:"
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
168 #define HAVE_INVERSE_HYPERBOLIC
169 #define FLOAT_CHECK_DOMAIN
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>:"
175 /* Define this to a function (Fdowncase, Fupcase) if your file system
177 #define FILE_SYSTEM_CASE Fmsdos_downcase_filename
179 /* Define this to be the separator between devices and paths */
180 #define DEVICE_SEP ':'
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_))
186 /* Call init_gettimeofday when TZ changes. */
188 #define LOCALTIME_CACHE
189 #define tzset init_gettimeofday
192 /* bcopy under djgpp is quite safe */
193 #define GAP_USE_BCOPY
194 #define BCOPY_UPWARD_SAFE 1
195 #define BCOPY_DOWNWARD_SAFE 1
197 /* Mode line description of a buffer's type. */
198 #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
200 /* Do we have POSIX signals? */
202 #define POSIX_SIGNALS
205 /* We have (the code to control) a mouse. */
208 /* We canuse mouse menus. */
211 /* We have support for faces. */
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
219 #define LIBX11_SYSTEM "-lxext -lsys"
221 /* We need a little extra space, see ../../lisp/loadup.el */
222 #define SYSTEM_PURESIZE_EXTRA 85000