Mercurial > hg > xemacs-beta
comparison src/s/windowsnt.h @ 223:2c611d1463a6 r20-4b10
Import from CVS: tag r20-4b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:10:54 +0200 |
parents | 78478c60bfcd |
children | 0e522484dd2a |
comparison
equal
deleted
inserted
replaced
222:aae4c8b01452 | 223:2c611d1463a6 |
---|---|
24 #define WINDOWSNT | 24 #define WINDOWSNT |
25 #endif | 25 #endif |
26 | 26 |
27 #ifndef DOS_NT | 27 #ifndef DOS_NT |
28 #define DOS_NT /* MSDOS or WINDOWSNT */ | 28 #define DOS_NT /* MSDOS or WINDOWSNT */ |
29 #endif | |
30 | |
31 /* In case non-Microsoft compiler is used, we fake _MSC_VER */ | |
32 #ifndef _MSC_VER | |
33 #define _MSC_VER 1 | |
29 #endif | 34 #endif |
30 | 35 |
31 typedef unsigned short mode_t; | 36 typedef unsigned short mode_t; |
32 typedef long ptrdiff_t; | 37 typedef long ptrdiff_t; |
33 typedef int pid_t; | 38 typedef int pid_t; |
221 | 226 |
222 /* subprocess calls that are emulated */ | 227 /* subprocess calls that are emulated */ |
223 #define spawnve sys_spawnve | 228 #define spawnve sys_spawnve |
224 #define wait sys_wait | 229 #define wait sys_wait |
225 #define kill sys_kill | 230 #define kill sys_kill |
226 #define signal sys_signal | |
227 | 231 |
228 #define select sys_select | 232 #define select sys_select |
229 | 233 |
230 /* map to MSVC names */ | 234 /* map to MSVC names */ |
231 #define chdir _chdir | 235 #define chdir _chdir |
256 | 260 |
257 #ifdef HAVE_NTGUI | 261 #ifdef HAVE_NTGUI |
258 #define abort win32_abort | 262 #define abort win32_abort |
259 #endif | 263 #endif |
260 | 264 |
265 /* Setitimer is emulated */ | |
266 #define HAVE_SETITIMER | |
267 | |
268 /* We now have emulation for some signals */ | |
269 #define HAVE_SIGHOLD | |
270 #define sigset(s,h) msw_sigset(s,h) | |
271 #define sighold(s) msw_sighold(s) | |
272 #define sigrelse(s) msw_sigrelse(s) | |
273 #define sigpause(s) msw_sigpause(s) | |
274 #define signal sigset | |
275 | |
261 /* Defines that we need that aren't in the standard signal.h */ | 276 /* Defines that we need that aren't in the standard signal.h */ |
262 #define SIGHUP 1 /* Hang up */ | 277 #define SIGHUP 1 /* Hang up */ |
263 #define SIGQUIT 3 /* Quit process */ | 278 #define SIGQUIT 3 /* Quit process */ |
264 #define SIGTRAP 5 /* Trace trap */ | 279 #define SIGTRAP 5 /* Trace trap */ |
265 #define SIGKILL 9 /* Die, die die */ | 280 #define SIGKILL 9 /* Die, die die */ |
266 #define SIGPIPE 13 /* Write on pipe with no readers */ | 281 #define SIGPIPE 13 /* Write on pipe with no readers */ |
267 #define SIGALRM 14 /* Alarm */ | 282 #define SIGALRM 14 /* Alarm */ |
268 #define SIGCHLD 18 /* Death of child */ | 283 #define SIGCHLD 18 /* Death of child */ |
284 #define SIGPROF 29 /* Profiling timer exp */ | |
269 | 285 |
270 /* For integration with MSDOS support. */ | 286 /* For integration with MSDOS support. */ |
271 #define getdisk() (_getdrive () - 1) | 287 #define getdisk() (_getdrive () - 1) |
272 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | 288 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) |
273 | 289 |