From 419f37db4d1e2fe3c394c869c5375e545b3e364d Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Tue, 12 Oct 2010 19:39:41 +0300 Subject: Add bidirectional_transfer_loop() This helper function copies bidirectional stream of data between stdin/stdout and specified file descriptors. Signed-off-by: Ilari Liusvaara Signed-off-by: Junio C Hamano --- compat/mingw.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compat/mingw.h') diff --git a/compat/mingw.h b/compat/mingw.h index 3b2477be5f..f27a7b69b1 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -23,6 +23,9 @@ typedef int pid_t; #define WEXITSTATUS(x) ((x) & 0xff) #define WTERMSIG(x) SIGTERM +#define EWOULDBLOCK EAGAIN +#define SHUT_WR SD_SEND + #define SIGHUP 1 #define SIGQUIT 3 #define SIGKILL 9 @@ -50,6 +53,8 @@ struct pollfd { }; #define POLLIN 1 #define POLLHUP 2 +#define POLLOUT 4 +#define POLLNVAL 8 #endif typedef void (__cdecl *sig_handler_t)(int); -- cgit v1.2.1