summaryrefslogtreecommitdiff
path: root/os/windows/posix/include
diff options
context:
space:
mode:
authorBruce Cran <bruce@cran.org.uk>2012-08-21 15:45:57 +0200
committerJens Axboe <axboe@kernel.dk>2012-08-21 15:45:57 +0200
commitad9c0fbc7ce6d1bba089f543036c997cbad84d7b (patch)
tree59335c70b1a885a4935f7a8fce73de4b8b023929 /os/windows/posix/include
parent242c38db2cabd0f00bbe37a053c62da07ba345a4 (diff)
downloadfio-ad9c0fbc7ce6d1bba089f543036c997cbad84d7b.tar.gz
fio-ad9c0fbc7ce6d1bba089f543036c997cbad84d7b.tar.bz2
Windows fio: implement some more POSIX functions
Implement opendir, closedir, readdir, and basic openlog, closelog and syslog functionality on Windows. Remove inet_aton since it wasn't being used. Remove warning that msync isn't implemented - just return an error. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/windows/posix/include')
-rw-r--r--os/windows/posix/include/dirent.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/os/windows/posix/include/dirent.h b/os/windows/posix/include/dirent.h
index ca4d4c94..eef6a880 100644
--- a/os/windows/posix/include/dirent.h
+++ b/os/windows/posix/include/dirent.h
@@ -1,13 +1,21 @@
#ifndef DIRENT_H
#define DIRENT_H
+#include <windows.h>
+
struct dirent
{
ino_t d_ino; /* File serial number */
- char d_name[]; /* Name of entry */
+ char d_name[MAX_PATH]; /* Name of entry */
+};
+
+struct dirent_ctx
+{
+ HANDLE find_handle;
+ char dirname[MAX_PATH];
};
-typedef int DIR;
+typedef struct dirent_ctx DIR;
DIR *opendir(const char *dirname);
struct dirent *readdir(DIR *dirp);