Move Windows port to MinGW
[fio.git] / os / windows / posix / include / sys / uio.h
diff --git a/os/windows/posix/include/sys/uio.h b/os/windows/posix/include/sys/uio.h
new file mode 100644 (file)
index 0000000..1022986
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef SYS_UIO_H\r
+#define SYS_UIO_H\r
+\r
+#include <inttypes.h>\r
+#include <unistd.h>\r
+\r
+ struct iovec\r
+ {\r
+       void   *iov_base;  //Base address of a memory region for input or output.\r
+       size_t  iov_len;   //The size of the memory pointed to by iov_base.\r
+};\r
+\r
+ ssize_t readv(int fildes, const struct iovec *iov, int iovcnt);\r
+ ssize_t writev(int fildes, const struct iovec *iov, int iovcnt);\r
+\r
+#endif /* SYS_UIO_H */\r