diff options
author | Ilari Liusvaara <ilari.liusvaara@elisanet.fi> | 2010-10-12 19:39:41 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-13 16:08:58 -0700 |
commit | 419f37db4d1e2fe3c394c869c5375e545b3e364d (patch) | |
tree | 50284e09d79b6ac34ad42a786373b12f978c20ca /compat | |
parent | Git 1.7.3 (diff) | |
download | tgif-419f37db4d1e2fe3c394c869c5375e545b3e364d.tar.xz |
Add bidirectional_transfer_loop()
This helper function copies bidirectional stream of data between
stdin/stdout and specified file descriptors.
Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mingw.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |