X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-aix.h;h=1870e6e46f9c14676c53394eaadff3383a08d675;hb=e476994eed3bee246ca166ea6ad6018911408e9b;hp=8e4a71d51fc69ce29bc4d1221c2d048298452844;hpb=e2e58886427019b525d2a234c5404a38ec0c7ebf;p=fio.git diff --git a/os/os-aix.h b/os/os-aix.h index 8e4a71d5..1870e6e4 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 @@ -11,6 +13,7 @@ #define FIO_HAVE_POSIXAIO #define FIO_HAVE_ODIRECT #define FIO_USE_GENERIC_RAND +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_CLOCK_MONOTONIC /* @@ -25,7 +28,18 @@ #define OS_MAP_ANON MAP_ANON #define OS_MSG_DONTWAIT 0 -static inline int blockdev_invalidate_cache(struct fio_file fio_unused *f) +#if BYTE_ORDER == BIG_ENDIAN +#define FIO_BIG_ENDIAN +#else +#define FIO_LITTLE_ENDIAN +#endif + +#define FIO_USE_GENERIC_SWAP + +#define FIO_OS_HAVE_SOCKLEN_T +#define fio_socklen_t socklen_t + +static inline int blockdev_invalidate_cache(struct fio_file *f) { return EINVAL; }