X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-aix.h;h=e204d6f27f270f1e63a06809fb4fdaffb2cbe1e4;hb=540e235dcd276e63c57ca4bd35f70a0651e2d00e;hp=b5ee5bb35e6a38f73c25bc05df8d3b0a0ed0ace1;hpb=ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe;p=fio.git diff --git a/os/os-aix.h b/os/os-aix.h index b5ee5bb3..e204d6f2 100644 --- a/os/os-aix.h +++ b/os/os-aix.h @@ -1,31 +1,27 @@ #ifndef FIO_OS_AIX_H #define FIO_OS_AIX_H +#define FIO_OS os_aix + #include #include #include #include -#define FIO_HAVE_POSIXAIO +#include "../file.h" + #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)