summaryrefslogtreecommitdiff
path: root/os/windows/posix
diff options
context:
space:
mode:
authorBruce Cran <bcran@fusionio.com>2013-11-01 12:31:03 -0600
committerJens Axboe <axboe@kernel.dk>2013-11-01 12:31:03 -0600
commit70a61165b46f210407bcac839b4f0ffe7b4e009f (patch)
treefbde357c34c5f428191262aabfcd340d1eaa5818 /os/windows/posix
parentf16b7405fff7c3fc1da421b6bdf8552cc99c3156 (diff)
downloadfio-70a61165b46f210407bcac839b4f0ffe7b4e009f.tar.gz
fio-70a61165b46f210407bcac839b4f0ffe7b4e009f.tar.bz2
Implement writev on Windows
The network code depends on writev(), so implement it for Windows. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/windows/posix')
-rw-r--r--os/windows/posix/include/sys/uio.h4
-rw-r--r--os/windows/posix/include/sys/wait.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/os/windows/posix/include/sys/uio.h b/os/windows/posix/include/sys/uio.h
index 25f83d60..402e988b 100644
--- a/os/windows/posix/include/sys/uio.h
+++ b/os/windows/posix/include/sys/uio.h
@@ -4,8 +4,8 @@
#include <inttypes.h>
#include <unistd.h>
- struct iovec
- {
+struct iovec
+{
void *iov_base; /* Base address of a memory region for input or output */
size_t iov_len; /* The size of the memory pointed to by iov_base */
};
diff --git a/os/windows/posix/include/sys/wait.h b/os/windows/posix/include/sys/wait.h
index 5b8fd3ae..ac50aa86 100644
--- a/os/windows/posix/include/sys/wait.h
+++ b/os/windows/posix/include/sys/wait.h
@@ -5,7 +5,7 @@
#define WIFEXITED(a) 0
#define WTERMSIG(a) 0
#define WEXITSTATUS(a) 0
-#define WNOHANG 0
+#define WNOHANG 1
pid_t waitpid(pid_t, int *stat_loc, int options);