FIO Windows update
[fio.git] / os / os-aix.h
index 1cc35e86cb2addc70af03a3c2aa13ac24aaed906..b5ee5bb35e6a38f73c25bc05df8d3b0a0ed0ace1 100644 (file)
@@ -7,24 +7,32 @@
 #include <sys/ioctl.h>
 
 #define FIO_HAVE_POSIXAIO
-#define FIO_HAVE_FALLOCATE
 #define FIO_HAVE_ODIRECT
 #define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_CLOCK_MONOTONIC
+
+/*
+ * This is broken on AIX if _LARGE_FILES is defined...
+ */
+#if 0
+#define FIO_HAVE_FALLOCATE
+#endif
 
 #define FIO_HAVE_PSHARED_MUTEX
 
 #define OS_MAP_ANON            MAP_ANON
+#define OS_MSG_DONTWAIT                0
 
-static inline int blockdev_invalidate_cache(int fd)
+static inline int blockdev_invalidate_cache(struct fio_file fio_unused *f)
 {
        return EINVAL;
 }
 
-static inline int blockdev_size(int fd, unsigned long long *bytes)
+static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
 {
        struct devinfo info;
 
-       if (!ioctl(fd, IOCINFO, &info)) {
+       if (!ioctl(f->fd, IOCINFO, &info)) {
                *bytes = (unsigned long long)info.un.scdk.numblks *
                                info.un.scdk.blksize;
                return 0;