Mercurial > hg > xemacs-beta
comparison src/s/windowsnt.h @ 239:41f2f0e326e9 r20-5b18
Import from CVS: tag r20-5b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:15:48 +0200 |
parents | 0e522484dd2a |
children | 8efd647ea9ca |
comparison
equal
deleted
inserted
replaced
238:b5f2e56b938d | 239:41f2f0e326e9 |
---|---|
32 #ifndef _MSC_VER | 32 #ifndef _MSC_VER |
33 #define _MSC_VER 1 | 33 #define _MSC_VER 1 |
34 #endif | 34 #endif |
35 | 35 |
36 typedef unsigned short mode_t; | 36 typedef unsigned short mode_t; |
37 typedef long ptrdiff_t; | 37 /* typedef long ptrdiff_t; -kkm */ |
38 typedef int pid_t; | 38 typedef int pid_t; |
39 | |
40 #include <stddef.h> | |
39 | 41 |
40 /* If you are compiling with a non-C calling convention but need to | 42 /* If you are compiling with a non-C calling convention but need to |
41 declare vararg routines differently, put it here */ | 43 declare vararg routines differently, put it here */ |
42 #define _VARARGS_ __cdecl | 44 #define _VARARGS_ __cdecl |
43 | 45 |
163 #define HAVE_FTIME | 165 #define HAVE_FTIME |
164 #define HAVE_MKTIME | 166 #define HAVE_MKTIME |
165 | 167 |
166 #define HAVE_MOUSE | 168 #define HAVE_MOUSE |
167 #define HAVE_H_ERRNO | 169 #define HAVE_H_ERRNO |
170 #define HAVE_STRUCT_UTIMBUF | |
168 | 171 |
169 #ifdef HAVE_NTGUI | 172 #ifdef HAVE_NTGUI |
170 #define HAVE_WINDOW_SYSTEM | 173 #define HAVE_WINDOW_SYSTEM |
171 #define HAVE_FACES | 174 #define HAVE_FACES |
172 #endif | 175 #endif |
176 | |
177 #define HAVE_STRCASECMP | |
178 | |
179 /* Compatibility macros. Some used to be routines in nt.c */ | |
180 #define strcasecmp(x,y) _stricmp(x,y) | |
181 #define random() (rand() << 15 | rand()) | |
182 #define srandom(seed) (srand(seed)) | |
183 #define setpgrp(pid,gid) | |
173 | 184 |
174 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") | 185 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") |
175 | 186 |
176 /* get some redefinitions in place */ | 187 /* get some redefinitions in place */ |
177 | 188 |
217 #include <stdio.h> | 228 #include <stdio.h> |
218 | 229 |
219 | 230 |
220 /* IO calls that are emulated or shadowed */ | 231 /* IO calls that are emulated or shadowed */ |
221 #define pipe sys_pipe | 232 #define pipe sys_pipe |
233 int sys_pipe (int * phandles); | |
222 | 234 |
223 #ifndef HAVE_X_WINDOWS | 235 #ifndef HAVE_X_WINDOWS |
224 #define sleep sys_sleep | 236 #define sleep sys_sleep |
237 void sleep (int seconds); | |
225 #endif | 238 #endif |
226 | 239 |
227 /* subprocess calls that are emulated */ | 240 /* subprocess calls that are emulated */ |
228 #define spawnve sys_spawnve | 241 #define spawnve sys_spawnve |
242 int spawnve (int mode, CONST char *cmdname, | |
243 CONST char * CONST *argv, CONST char *CONST *envp); | |
244 | |
229 #define wait sys_wait | 245 #define wait sys_wait |
246 int wait (int *status); | |
247 | |
230 #define kill sys_kill | 248 #define kill sys_kill |
249 int kill (int pid, int sig); | |
231 | 250 |
232 #define select sys_select | 251 #define select sys_select |
233 | 252 |
234 /* map to MSVC names */ | 253 /* map to MSVC names */ |
235 #define chdir _chdir | 254 #define chdir _chdir |
249 #define lseek _lseek | 268 #define lseek _lseek |
250 #define popen _popen | 269 #define popen _popen |
251 #define pclose _pclose | 270 #define pclose _pclose |
252 #define putw _putw | 271 #define putw _putw |
253 #define umask _umask | 272 #define umask _umask |
254 #define utime _utime | 273 /* #define utime _utime */ |
255 #define index strchr | 274 #define index strchr |
256 #define rindex strrchr | 275 #define rindex strrchr |
257 #define read _read | 276 #define read _read |
258 #define write _write | 277 #define write _write |
259 #define getcwd _getcwd | 278 #define getcwd _getcwd |
288 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | 307 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) |
289 | 308 |
290 #define EMACS_CONFIGURATION get_emacs_configuration () | 309 #define EMACS_CONFIGURATION get_emacs_configuration () |
291 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */ | 310 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */ |
292 | 311 |
312 #if 0 /* they do. -kkm */ | |
293 /* Define this so that winsock.h definitions don't get included when windows.h | 313 /* Define this so that winsock.h definitions don't get included when windows.h |
294 is... I don't know if they do the right thing for emacs. For this to | 314 is... I don't know if they do the right thing for emacs. For this to |
295 have proper effect, config.h must always be included before windows.h. */ | 315 have proper effect, config.h must always be included before windows.h. */ |
296 #define _WINSOCKAPI_ 1 | 316 #define _WINSOCKAPI_ 1 |
317 #endif /* 0 */ | |
297 | 318 |
298 /* Defines size_t and alloca (). */ | 319 /* Defines size_t and alloca (). */ |
299 #include <malloc.h> | 320 #include <malloc.h> |
300 | 321 |
301 #include <sys/stat.h> | 322 #include <sys/stat.h> |