X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-aix.h;h=1aab96e08d40ad9656eaa41ba1626a348bfa0d52;hb=a5951dd7710352c373aa1018ec42181b07031165;hp=8e4a71d51fc69ce29bc4d1221c2d048298452844;hpb=e2e58886427019b525d2a234c5404a38ec0c7ebf;p=fio.git diff --git a/os/os-aix.h b/os/os-aix.h index 8e4a71d5..1aab96e0 100644 --- a/os/os-aix.h +++ b/os/os-aix.h @@ -1,6 +1,8 @@ #ifndef FIO_OS_AIX_H #define FIO_OS_AIX_H +#define FIO_OS os_aix + #include #include #include @@ -8,26 +10,17 @@ #include "../file.h" -#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... - */ -#if 0 -#define FIO_HAVE_FALLOCATE -#endif - -#define FIO_HAVE_PSHARED_MUTEX +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define OS_MAP_ANON MAP_ANON #define OS_MSG_DONTWAIT 0 -static inline int blockdev_invalidate_cache(struct fio_file fio_unused *f) +#define FIO_USE_GENERIC_SWAP + +static inline int blockdev_invalidate_cache(struct fio_file *f) { - return EINVAL; + return ENOTSUP; } static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)