comparison src/sysdep.h @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 2f8bb876ab1d
children 697ef44129c6
comparison
equal deleted inserted replaced
409:301b9ebbdf3b 410:de805c49cfc1
23 #ifndef INCLUDED_sysdep_h_ 23 #ifndef INCLUDED_sysdep_h_
24 #define INCLUDED_sysdep_h_ 24 #define INCLUDED_sysdep_h_
25 25
26 #include <setjmp.h> 26 #include <setjmp.h>
27 27
28 #ifndef WINDOWSNT 28 #ifndef WIN32_NATIVE
29 extern char **environ; 29 extern char **environ;
30 #endif 30 #endif
31 31
32 #ifdef PDUMP 32 #ifdef PDUMP
33 int pdump_read_file (char **pdump_start_pos, size_t *pdump_length); 33 int pdump_read_file (char **pdump_start_pos, size_t *pdump_length);
48 int get_pty_max_bytes (int fd); 48 int get_pty_max_bytes (int fd);
49 Bufbyte get_eof_char (int fd); 49 Bufbyte get_eof_char (int fd);
50 50
51 /* Wait for subprocess with process id `pid' to terminate and 51 /* Wait for subprocess with process id `pid' to terminate and
52 make sure it will get eliminated (not remain forever as a zombie) */ 52 make sure it will get eliminated (not remain forever as a zombie) */
53 #ifdef WINDOWSNT 53 #ifndef WIN32_NATIVE
54 #include <windows.h>
55 void wait_for_termination (HANDLE pid);
56 #else
57 void wait_for_termination (int pid); 54 void wait_for_termination (int pid);
58 #endif 55 #endif
59 56
60 /* flush any pending output 57 /* flush any pending output
61 * (may flush input as well; it does not matter the way we use it) 58 * (may flush input as well; it does not matter the way we use it)
166 # undef strerror 163 # undef strerror
167 # endif 164 # endif
168 const char *strerror (int); 165 const char *strerror (int);
169 #endif 166 #endif
170 167
171 #ifdef WINDOWSNT
172 void mswindows_set_errno (unsigned long win32_error);
173 void mswindows_set_last_errno (void);
174 #endif
175
176 int interruptible_open (const char *path, int oflag, int mode); 168 int interruptible_open (const char *path, int oflag, int mode);
177 169
178 #ifndef HAVE_H_ERRNO 170 #ifndef HAVE_H_ERRNO
179 extern int h_errno; 171 extern int h_errno;
180 #endif 172 #endif