comparison src/s/windowsnt.h @ 100:4be1180a9e89 r20-1b2

Import from CVS: tag r20-1b2
author cvs
date Mon, 13 Aug 2007 09:15:11 +0200
parents 376386a54a3c
children 85ec50267440
comparison
equal deleted inserted replaced
99:2d83cbd90d8d 100:4be1180a9e89
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: FSF 19.31. */ 21 /* Synched up with: FSF 19.31. */
22 22
23 /*
24 * Define symbols to identify the version of Unix this is.
25 * Define all the symbols that apply correctly.
26 */
27
28 /* #define UNIPLUS */
29 /* #define USG5 */
30 /* #define USG */
31 /* #define HPUX */
32 /* #define UMAX */
33 /* #define BSD4_1 */
34 /* #define BSD4_2 */
35 /* #define BSD4_3 */
36 /* #define BSD */
37 /* #define VMS */
38 #ifndef WINDOWSNT 23 #ifndef WINDOWSNT
39 #define WINDOWSNT 24 #define WINDOWSNT
40 #endif 25 #endif
26
41 #ifndef DOS_NT 27 #ifndef DOS_NT
42 #define DOS_NT /* MSDOS or WINDOWSNT */ 28 #define DOS_NT /* MSDOS or WINDOWSNT */
43 #endif 29 #endif
30
31 typedef unsigned short mode_t;
32 typedef long ptrdiff_t;
33 typedef int pid_t;
44 34
45 /* If you are compiling with a non-C calling convention but need to 35 /* If you are compiling with a non-C calling convention but need to
46 declare vararg routines differently, put it here */ 36 declare vararg routines differently, put it here */
47 #define _VARARGS_ __cdecl 37 #define _VARARGS_ __cdecl
48 38
53 43
54 /* SYSTEM_TYPE should indicate the kind of system you are using. 44 /* SYSTEM_TYPE should indicate the kind of system you are using.
55 It sets the Lisp variable system-type. */ 45 It sets the Lisp variable system-type. */
56 46
57 #define SYSTEM_TYPE "windows-nt" 47 #define SYSTEM_TYPE "windows-nt"
58 #define SYMS_SYSTEM syms_of_ntterm ()
59 48
60 #define NO_MATHERR 49 #define NO_MATHERR
50
51 #define SIZEOF_LONG 4
52 #define SIZEOF_INT 4
53 #define SIZEOF_SHORT 4
61 54
62 /* NOMULTIPLEJOBS should be defined if your system's shell 55 /* NOMULTIPLEJOBS should be defined if your system's shell
63 does not have "job control" (the ability to stop a program, 56 does not have "job control" (the ability to stop a program,
64 run some other program, then continue the first one). */ 57 run some other program, then continue the first one). */
65 58
118 you might define certain system call names that don't 111 you might define certain system call names that don't
119 exist on your system, or that do different things on 112 exist on your system, or that do different things on
120 your system and must be used only through an encapsulation 113 your system and must be used only through an encapsulation
121 (Which you should place, by convention, in sysdep.c). */ 114 (Which you should place, by convention, in sysdep.c). */
122 115
116 #if 0
123 /* Define this to be the separator between path elements */ 117 /* Define this to be the separator between path elements */
124 #define DIRECTORY_SEP XINT (Vdirectory_sep_char) 118 #define DIRECTORY_SEP XINT (Vdirectory_sep_char)
119 #endif
125 120
126 /* Define this to be the separator between devices and paths */ 121 /* Define this to be the separator between devices and paths */
127 #define DEVICE_SEP ':' 122 #define DEVICE_SEP ':'
128 123
129 /* We'll support either convention on NT. */ 124 /* We'll support either convention on NT. */
137 #ifndef MAXPATHLEN 132 #ifndef MAXPATHLEN
138 #define MAXPATHLEN _MAX_PATH 133 #define MAXPATHLEN _MAX_PATH
139 #endif 134 #endif
140 135
141 #define LISP_FLOAT_TYPE 136 #define LISP_FLOAT_TYPE
142
143 #define HAVE_SYS_TIMEB_H
144 #define HAVE_SYS_TIME_H
145 #define HAVE_UNISTD_H
146 #define STDC_HEADERS
147 #define TIME_WITH_SYS_TIME
148 137
149 #define HAVE_GETTIMEOFDAY 138 #define HAVE_GETTIMEOFDAY
150 #define HAVE_GETHOSTNAME 139 #define HAVE_GETHOSTNAME
151 #define HAVE_DUP2 140 #define HAVE_DUP2
152 #define HAVE_RENAME 141 #define HAVE_RENAME
177 166
178 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") 167 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
179 168
180 /* get some redefinitions in place */ 169 /* get some redefinitions in place */
181 170
171 #if 0
182 /* IO calls that are emulated or shadowed */ 172 /* IO calls that are emulated or shadowed */
183 #define access sys_access 173 #define access sys_access
184 #define chdir sys_chdir 174 #define chdir sys_chdir
185 #define chmod sys_chmod 175 #define chmod sys_chmod
186 #define close sys_close 176 #define close sys_close
188 #define ctime sys_ctime 178 #define ctime sys_ctime
189 #define dup sys_dup 179 #define dup sys_dup
190 #define dup2 sys_dup2 180 #define dup2 sys_dup2
191 #define fopen sys_fopen 181 #define fopen sys_fopen
192 #define link sys_link 182 #define link sys_link
193 #define mkdir sys_mkdir
194 #define mktemp sys_mktemp 183 #define mktemp sys_mktemp
195 #define open sys_open 184 #define open sys_open
196 #define pipe sys_pipe
197 #define read sys_read 185 #define read sys_read
198 #define rename sys_rename 186 #define rename sys_rename
199 #define rmdir sys_rmdir
200 #define select sys_select
201 #define sleep sys_sleep
202 #define unlink sys_unlink 187 #define unlink sys_unlink
203 #define write sys_write 188 #define write sys_write
204 189 #define mkdir sys_mkdir
190 #define rmdir sys_rmdir
191
192 #endif
193
194 #if 0
205 /* this is hacky, but is necessary to avoid warnings about macro 195 /* this is hacky, but is necessary to avoid warnings about macro
206 redefinitions using the SDK compilers */ 196 redefinitions using the SDK compilers */
207 #ifndef __STDC__ 197 #ifndef __STDC__
208 #define __STDC__ 1 198 #define __STDC__ 1
209 #define MUST_UNDEF__STDC__ 199 #define MUST_UNDEF__STDC__
213 #include <stdio.h> 203 #include <stdio.h>
214 #ifdef MUST_UNDEF__STDC__ 204 #ifdef MUST_UNDEF__STDC__
215 #undef __STDC__ 205 #undef __STDC__
216 #undef MUST_UNDEF__STDC__ 206 #undef MUST_UNDEF__STDC__
217 #endif 207 #endif
208 #endif
209
210
211 /* IO calls that are emulated or shadowed */
212 #define pipe sys_pipe
213
214 #ifndef HAVE_X_WINDOWS
215 #define sleep sys_sleep
216 #endif
218 217
219 /* subprocess calls that are emulated */ 218 /* subprocess calls that are emulated */
220 #define spawnve sys_spawnve 219 #define spawnve sys_spawnve
221 #define wait sys_wait 220 #define wait sys_wait
222 #define kill sys_kill 221 #define kill sys_kill
223 #define signal sys_signal 222 #define signal sys_signal
224 223
224 #define select sys_select
225
225 /* map to MSVC names */ 226 /* map to MSVC names */
226 #define execlp _execlp 227 #define execlp _execlp
227 #define execvp _execvp 228 #define execvp _execvp
228 #define fcloseall _fcloseall 229 #define fcloseall _fcloseall
229 #define fdopen _fdopen 230 #define fdopen _fdopen
230 #define fgetchar _fgetchar 231 #define fgetchar _fgetchar
231 #define fileno _fileno 232 #define fileno _fileno
232 #define flushall _flushall 233 #define flushall _flushall
233 #define fputchar _fputchar 234 #define fputchar _fputchar
234 #define getw _getw 235 #define getw _getw
235 #define getpid _getpid 236 #define getpid _getpid
236 #define isatty _isatty 237 #define isatty _isatty
237 #define logb _logb 238 #define logb _logb
238 #define _longjmp longjmp 239 #define _longjmp longjmp
239 #define lseek _lseek 240 #define lseek _lseek
240 #define popen _popen 241 #define popen _popen
241 #define pclose _pclose 242 #define pclose _pclose
242 #define putw _putw 243 #define putw _putw
243 #define umask _umask 244 #define umask _umask
244 #define utime _utime 245 #define utime _utime
245 #define index strchr 246 #define index strchr
246 #define rindex strrchr 247 #define rindex strrchr
248 #define read _read
249 #define write _write
247 250
248 #ifdef HAVE_NTGUI 251 #ifdef HAVE_NTGUI
249 #define abort win32_abort 252 #define abort win32_abort
250 #endif 253 #endif
251 254
287 290
288 /* For proper declaration of environ. */ 291 /* For proper declaration of environ. */
289 #include <stdlib.h> 292 #include <stdlib.h>
290 #include <string.h> 293 #include <string.h>
291 294
295 #if 0
292 /* Emacs takes care of ensuring that these are defined. */ 296 /* Emacs takes care of ensuring that these are defined. */
293 #ifdef max 297 #ifdef max
294 #undef max 298 #undef max
295 #undef min 299 #undef min
296 #endif 300 #endif
301 #endif
297 302
298 /* We need a little extra space, see ../../lisp/loadup.el */ 303 /* We need a little extra space, see ../../lisp/loadup.el */
299 #define SYSTEM_PURESIZE_EXTRA 15000 304 #define SYSTEM_PURESIZE_EXTRA 15000
300 305
301 /* ============================================================ */ 306 /* ============================================================ */