Mercurial > hg > xemacs-beta
comparison src/nt.h @ 209:41ff10fd062f r20-4b3
Import from CVS: tag r20-4b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:04:58 +0200 |
parents | 4be1180a9e89 |
children | 78478c60bfcd |
comparison
equal
deleted
inserted
replaced
208:f427b8ec4379 | 209:41ff10fd062f |
---|---|
20 along with XEmacs; see the file COPYING. If not, write to | 20 along with XEmacs; see the file COPYING. If not, write to |
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
22 Boston, MA 02111-1307, USA. */ | 22 Boston, MA 02111-1307, USA. */ |
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 | 26 |
26 /* #define FULL_DEBUG */ | 27 /* #define FULL_DEBUG */ |
27 #define EMACSDEBUG | 28 #define EMACSDEBUG |
28 | 29 |
29 #ifdef EMACSDEBUG | 30 #ifdef EMACSDEBUG |
79 a socket, the process handle in pi is NULL. */ | 80 a socket, the process handle in pi is NULL. */ |
80 typedef struct _child_process | 81 typedef struct _child_process |
81 { | 82 { |
82 int fd; | 83 int fd; |
83 int pid; | 84 int pid; |
84 int is_dos_process; | |
85 HANDLE char_avail; | 85 HANDLE char_avail; |
86 HANDLE char_consumed; | 86 HANDLE char_consumed; |
87 HANDLE thrd; | 87 HANDLE thrd; |
88 HWND hwnd; | |
88 PROCESS_INFORMATION procinfo; | 89 PROCESS_INFORMATION procinfo; |
89 volatile int status; | 90 volatile int status; |
90 char chr; | 91 char chr; |
91 } child_process; | 92 } child_process; |
92 | 93 |
106 | 107 |
107 /* fd_info flag definitions */ | 108 /* fd_info flag definitions */ |
108 #define FILE_READ 0x0001 | 109 #define FILE_READ 0x0001 |
109 #define FILE_WRITE 0x0002 | 110 #define FILE_WRITE 0x0002 |
110 #define FILE_BINARY 0x0010 | 111 #define FILE_BINARY 0x0010 |
112 #define FILE_LAST_CR 0x0020 | |
113 #define FILE_AT_EOF 0x0040 | |
114 #define FILE_SEND_SIGCHLD 0x0080 | |
111 #define FILE_PIPE 0x0100 | 115 #define FILE_PIPE 0x0100 |
112 #define FILE_SOCKET 0x0200 | 116 #define FILE_SOCKET 0x0200 |
113 | 117 |
114 extern child_process * new_child (void); | 118 extern child_process * new_child (void); |
115 extern void delete_child (child_process *cp); | 119 extern void delete_child (child_process *cp); |
116 | 120 |
117 /* ------------------------------------------------------------------------- */ | 121 /* ------------------------------------------------------------------------- */ |
118 | 122 |
123 /* Get long (aka "true") form of file name, if it exists. */ | |
124 extern BOOL win32_get_long_filename (char * name, char * buf, int size); | |
119 | 125 |
120 /* Prepare our standard handles for proper inheritance by child processes. */ | 126 /* Prepare our standard handles for proper inheritance by child processes. */ |
121 extern void prepare_standard_handles (int in, int out, | 127 extern void prepare_standard_handles (int in, int out, |
122 int err, HANDLE handles[4]); | 128 int err, HANDLE handles[4]); |
123 | 129 |