annotate nt/src.s.windowsnt.h @ 143:50e7fedfe353

Added tag r20-2b5 for changeset 1856695b1fa9
author cvs
date Mon, 13 Aug 2007 09:33:20 +0200
parents 4be1180a9e89
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1 /* System description file for Windows NT.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
3
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
4 This file is part of GNU Emacs.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
5
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
9 any later version.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
10
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
14 GNU General Public License for more details.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
15
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
20
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.31. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
22
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
23 /*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
24 * Define symbols to identify the version of Unix this is.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
25 * Define all the symbols that apply correctly.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
26 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
27
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
28 /* #define UNIPLUS */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
29 /* #define USG5 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
30 /* #define USG */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
31 /* #define HPUX */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
32 /* #define UMAX */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
33 /* #define BSD4_1 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
34 /* #define BSD4_2 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
35 /* #define BSD4_3 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
36 /* #define BSD */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
37 /* #define VMS */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
38 #ifndef WINDOWSNT
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
39 #define WINDOWSNT
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
40 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
41 #ifndef DOS_NT
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
42 #define DOS_NT /* MSDOS or WINDOWSNT */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
43 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
44
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
45 /* If you are compiling with a non-C calling convention but need to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
46 declare vararg routines differently, put it here */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
47 #define _VARARGS_ __cdecl
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
48
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
49 /* If you are providing a function to something that will call the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
50 function back (like a signal handler and signal, or main) its calling
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
51 convention must be whatever standard the libraries expect */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
52 #define _CALLBACK_ __cdecl
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
53
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
54 /* SYSTEM_TYPE should indicate the kind of system you are using.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
55 It sets the Lisp variable system-type. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
56
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
57 #define SYSTEM_TYPE "windows-nt"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
58
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
59 #define NO_MATHERR
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
60
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
61 #define SIZEOF_LONG 4
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
62 #define SIZEOF_INT 4
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
63 #define SIZEOF_SHORT 4
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
64
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
65 /* NOMULTIPLEJOBS should be defined if your system's shell
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
66 does not have "job control" (the ability to stop a program,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
67 run some other program, then continue the first one). */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
68
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
69 /* #define NOMULTIPLEJOBS */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
70
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
71 /* Letter to use in finding device name of first pty,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
72 if system supports pty's. 'a' means it is /dev/ptya0 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
73
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
74 #define FIRST_PTY_LETTER 'a'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
75
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
76 /*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
77 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
78 * Look in <sys/time.h> for a timeval structure.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
79 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
80
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
81 #define HAVE_TIMEVAL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
82
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
83 /*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
84 * Define HAVE_SELECT if the system supports the `select' system call.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
85 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
86
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
87 /* #define HAVE_SELECT */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
88
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
89 /*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
90 * Define HAVE_PTYS if the system supports pty devices.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
91 */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
92
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
93 /* #define HAVE_PTYS */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
94
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
95 /* If your system uses COFF (Common Object File Format) then define the
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
96 preprocessor symbol "COFF". */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
97
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
98 #define COFF
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
99
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
100 /* NT supports Winsock which is close enough (with some hacks) */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
101
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
102 #define HAVE_SOCKETS
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
103
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
104 /* define MAIL_USE_FLOCK if the mailer uses flock
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
105 to interlock access to /usr/spool/mail/$USER.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
106 The alternative is that a lock file named
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
107 /usr/spool/mail/$USER.lock. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
108
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
109 /* #define MAIL_USE_FLOCK */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
110 #define MAIL_USE_POP
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
111 #define MAIL_USE_SYSTEM_LOCK
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
112
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
113 /* If the character used to separate elements of the executable path
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
114 is not ':', #define this to be the appropriate character constant. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
115 #define SEPCHAR ';'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
116
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
117 /* ============================================================ */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
118
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
119 /* Here, add any special hacks needed
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
120 to make Emacs work on this system. For example,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
121 you might define certain system call names that don't
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
122 exist on your system, or that do different things on
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
123 your system and must be used only through an encapsulation
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
124 (Which you should place, by convention, in sysdep.c). */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
125
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
126 #if 0
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
127 /* Define this to be the separator between path elements */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
128 #define DIRECTORY_SEP XINT (Vdirectory_sep_char)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
129 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
130
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
131 /* Define this to be the separator between devices and paths */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
132 #define DEVICE_SEP ':'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
133
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
134 /* We'll support either convention on NT. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
135 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
136 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
137
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
138 /* The null device on Windows NT. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
139 #define NULL_DEVICE "NUL:"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
140 #define EXEC_SUFFIXES ".exe:.com:.bat:.cmd:"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
141
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
142 #ifndef MAXPATHLEN
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
143 #define MAXPATHLEN _MAX_PATH
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
144 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
145
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
146 #define LISP_FLOAT_TYPE
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
147
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
148 #define HAVE_SYS_TIMEB_H
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
149 #undef HAVE_SYS_TIME_H
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
150 #undef HAVE_UNISTD_H
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
151 #undef STDC_HEADERS
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
152 #undef TIME_WITH_SYS_TIME
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
153
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
154 #define HAVE_GETTIMEOFDAY
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
155 #define HAVE_GETHOSTNAME
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
156 #define HAVE_DUP2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
157 #define HAVE_RENAME
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
158 #define HAVE_CLOSEDIR
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
159
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
160 #define HAVE_TZNAME
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
161
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
162 #define HAVE_LONG_FILE_NAMES
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
163
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
164 #define HAVE_MKDIR
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
165 #define HAVE_RMDIR
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
166 #define HAVE_RANDOM
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
167 #define HAVE_BCOPY
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
168 #define HAVE_BCMP
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
169 #define HAVE_LOGB
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
170 #define HAVE_FREXP
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
171 #define HAVE_FMOD
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
172 #define HAVE_FTIME
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
173 #define HAVE_MKTIME
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
174
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
175 #define HAVE_MOUSE
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
176 #define HAVE_H_ERRNO
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
177
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
178 #ifdef HAVE_NTGUI
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
179 #define HAVE_WINDOW_SYSTEM
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
180 #define HAVE_FACES
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
181 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
182
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
183 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
184
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
185 /* get some redefinitions in place */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
186
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
187 #if 0
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
188 /* IO calls that are emulated or shadowed */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
189 #define access sys_access
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
190 #define chdir sys_chdir
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
191 #define chmod sys_chmod
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
192 #define close sys_close
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
193 #define creat sys_creat
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
194 #define ctime sys_ctime
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
195 #define dup sys_dup
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
196 #define dup2 sys_dup2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
197 #define fopen sys_fopen
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
198 #define link sys_link
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
199 #define mkdir sys_mkdir
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
200 #define mktemp sys_mktemp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
201 #define open sys_open
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
202 #define read sys_read
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
203 #define rename sys_rename
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
204 #define rmdir sys_rmdir
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
205 #define select sys_select
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
206 #define unlink sys_unlink
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
207 #define write sys_write
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
208 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
209
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
210 #if 0
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
211 /* this is hacky, but is necessary to avoid warnings about macro
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
212 redefinitions using the SDK compilers */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
213 #ifndef __STDC__
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
214 #define __STDC__ 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
215 #define MUST_UNDEF__STDC__
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
216 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
217 #include <direct.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
218 #include <io.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
219 #include <stdio.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
220 #ifdef MUST_UNDEF__STDC__
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
221 #undef __STDC__
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
222 #undef MUST_UNDEF__STDC__
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
223 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
224 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
225
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
226
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
227 /* IO calls that are emulated or shadowed */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
228 #define pipe sys_pipe
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
229 #define sleep sys_sleep
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
230
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
231 /* subprocess calls that are emulated */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
232 #define spawnve sys_spawnve
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
233 #define wait sys_wait
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
234 #define kill sys_kill
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
235 #define signal sys_signal
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
236
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
237 /* map to MSVC names */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
238 #define execlp _execlp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
239 #define execvp _execvp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
240 #define fcloseall _fcloseall
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
241 #define fdopen _fdopen
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
242 #define fgetchar _fgetchar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
243 #define fileno _fileno
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
244 #define flushall _flushall
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
245 #define fputchar _fputchar
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
246 #define getw _getw
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
247 #define getpid _getpid
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
248 #define isatty _isatty
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
249 #define logb _logb
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
250 #define _longjmp longjmp
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
251 #define lseek _lseek
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
252 #define popen _popen
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
253 #define pclose _pclose
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
254 #define putw _putw
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
255 #define umask _umask
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
256 #define utime _utime
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
257 #define index strchr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
258 #define rindex strrchr
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
259 #define read _read
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
260 #define write _write
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
261
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
262 #ifdef HAVE_NTGUI
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
263 #define abort win32_abort
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
264 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
265
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
266 /* Defines that we need that aren't in the standard signal.h */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
267 #define SIGHUP 1 /* Hang up */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
268 #define SIGQUIT 3 /* Quit process */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
269 #define SIGTRAP 5 /* Trace trap */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
270 #define SIGKILL 9 /* Die, die die */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
271 #define SIGPIPE 13 /* Write on pipe with no readers */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
272 #define SIGALRM 14 /* Alarm */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
273 #define SIGCHLD 18 /* Death of child */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
274
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
275 /* For integration with MSDOS support. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
276 #define getdisk() (_getdrive () - 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
277 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
278
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
279 #define EMACS_CONFIGURATION get_emacs_configuration ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
280 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
281
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
282 /* Define this so that winsock.h definitions don't get included when windows.h
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
283 is... I don't know if they do the right thing for emacs. For this to
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
284 have proper effect, config.h must always be included before windows.h. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
285 #define _WINSOCKAPI_ 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
286
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
287 /* Defines size_t and alloca (). */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
288 #include <malloc.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
289
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
290 #include <sys/stat.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
291
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
292 /* Define for those source files that do not include enough NT
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
293 system files. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
294 #ifndef NULL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
295 #ifdef __cplusplus
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
296 #define NULL 0
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
297 #else
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
298 #define NULL ((void *)0)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
299 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
300 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
301
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
302 /* For proper declaration of environ. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
303 #include <stdlib.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
304 #include <string.h>
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
305
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
306 /* Emacs takes care of ensuring that these are defined. */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
307 #ifdef max
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
308 #undef max
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
309 #undef min
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
310 #endif
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
311
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
312 /* We need a little extra space, see ../../lisp/loadup.el */
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
313 #define SYSTEM_PURESIZE_EXTRA 15000
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
314
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
315 /* ============================================================ */