summaryrefslogtreecommitdiff
path: root/os/os-aix.h
diff options
context:
space:
mode:
authorBruce Cran <bruce@cran.org.uk>2011-01-04 10:59:30 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-04 10:59:30 +0100
commitecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe (patch)
tree6ffdc338398b8426022d7e32a185db4ffb41d58f /os/os-aix.h
parent03e20d687566753b90383571e5e152c5142bdffd (diff)
downloadfio-ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe.tar.gz
fio-ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe.tar.bz2
FIO Windows update
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'os/os-aix.h')
-rw-r--r--os/os-aix.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/os/os-aix.h b/os/os-aix.h
index 09a0530f..b5ee5bb3 100644
--- a/os/os-aix.h
+++ b/os/os-aix.h
@@ -9,6 +9,7 @@
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_CLOCK_MONOTONIC
/*
* This is broken on AIX if _LARGE_FILES is defined...
@@ -22,16 +23,16 @@
#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;