Mercurial > hg > xemacs-beta
comparison src/nt.h @ 239:41f2f0e326e9 r20-5b18
Import from CVS: tag r20-5b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:15:48 +0200 |
parents | 78478c60bfcd |
children | e11d67e05968 |
comparison
equal
deleted
inserted
replaced
238:b5f2e56b938d | 239:41f2f0e326e9 |
---|---|
23 | 23 |
24 /* Adapted for XEmacs by David Hobley <david@spook-le0.cia.com.au> */ | 24 /* Adapted for XEmacs by David Hobley <david@spook-le0.cia.com.au> */ |
25 /* Sync'ed with Emacs 19.34.6 by Marc Paquette <marcpa@cam.org> */ | 25 /* Sync'ed with Emacs 19.34.6 by Marc Paquette <marcpa@cam.org> */ |
26 | 26 |
27 /* #define FULL_DEBUG */ | 27 /* #define FULL_DEBUG */ |
28 #define EMACSDEBUG | |
29 | 28 |
30 #ifdef EMACSDEBUG | 29 #ifdef DEBUG_XEMACS |
31 #define DebPrint(stuff) _DebPrint stuff | 30 #define DebPrint(stuff) _DebPrint stuff |
32 #else | 31 #else |
33 #define DebPrint(stuff) | 32 #define DebPrint(stuff) |
34 #endif | 33 #endif |
35 | 34 |
37 #define W_OK 2 | 36 #define W_OK 2 |
38 #define X_OK 1 | 37 #define X_OK 1 |
39 #define F_OK 0 | 38 #define F_OK 0 |
40 | 39 |
41 /* File descriptor set emulation. */ | 40 /* File descriptor set emulation. */ |
41 | |
42 #if 0 /* These are defined in winsock.h. | |
43 FD_SETSIZE is defined 64. Let's not full the runtime. */ | |
42 | 44 |
43 /* The MSVC multithreaded statically-linked runtime library has limit | 45 /* The MSVC multithreaded statically-linked runtime library has limit |
44 of 256 descriptors by default (the single-threaded static library | 46 of 256 descriptors by default (the single-threaded static library |
45 has a limit of 64 descriptors, and the DLL versions both have a | 47 has a limit of 64 descriptors, and the DLL versions both have a |
46 limit of 512). Beware. Should this be set to 512? */ | 48 limit of 512). Beware. Should this be set to 512? */ |
64 } while (0) | 66 } while (0) |
65 #define FD_ISSET(n, p) ((n) < FD_SETSIZE ? ((p)->bits[(n)/32] & (1 << (n)%32)) : 0) | 67 #define FD_ISSET(n, p) ((n) < FD_SETSIZE ? ((p)->bits[(n)/32] & (1 << (n)%32)) : 0) |
66 #define FD_ZERO(p) memset((p), 0, sizeof(fd_set)) | 68 #define FD_ZERO(p) memset((p), 0, sizeof(fd_set)) |
67 | 69 |
68 #define SELECT_TYPE fd_set | 70 #define SELECT_TYPE fd_set |
71 #define MAXDESC FD_SETSIZE | |
72 | |
73 #endif /* 0 */ | |
69 | 74 |
70 /* ------------------------------------------------------------------------- */ | 75 /* ------------------------------------------------------------------------- */ |
71 | 76 |
72 /* child_process.status values */ | 77 /* child_process.status values */ |
73 enum { | 78 enum { |
92 PROCESS_INFORMATION procinfo; | 97 PROCESS_INFORMATION procinfo; |
93 volatile int status; | 98 volatile int status; |
94 char chr; | 99 char chr; |
95 } child_process; | 100 } child_process; |
96 | 101 |
97 #define MAXDESC FD_SETSIZE | |
98 #define MAX_CHILDREN MAXDESC/2 | 102 #define MAX_CHILDREN MAXDESC/2 |
99 #define CHILD_ACTIVE(cp) ((cp)->char_avail != NULL) | 103 #define CHILD_ACTIVE(cp) ((cp)->char_avail != NULL) |
100 | 104 |
101 /* parallel array of private info on file handles */ | 105 /* parallel array of private info on file handles */ |
102 typedef struct | 106 typedef struct |