X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-hpux.h;h=515a5256878a1d57f6f2fb651f05c2fa66b2af7b;hp=1b1c95896eec5431584fb89e4ee6b35308ea8da9;hb=dac7244bf482557c2e46aac1171c3890b3d9316f;hpb=0ec15d6ca9fee3c2b0f19b3520f5b77fb2378d51 diff --git a/os/os-hpux.h b/os/os-hpux.h index 1b1c9589..515a5256 100644 --- a/os/os-hpux.h +++ b/os/os-hpux.h @@ -1,10 +1,12 @@ #ifndef FIO_OS_HPUX_H #define FIO_OS_HPUX_H +#define FIO_OS os_hpux + #include #include #include -#include +#include #include #include #include @@ -13,15 +15,13 @@ #include #include #include +#include #include "../file.h" -#define FIO_HAVE_POSIXAIO #define FIO_HAVE_ODIRECT #define FIO_USE_GENERIC_RAND -#define FIO_HAVE_CLOCK_MONOTONIC -#define FIO_HAVE_PSHARED_MUTEX -#define FIO_HAVE_FADVISE +#define FIO_USE_GENERIC_INIT_RANDOM_STATE #define FIO_HAVE_CHARDEV_SIZE #define OS_MAP_ANON MAP_ANONYMOUS @@ -32,17 +32,18 @@ #define POSIX_MADV_RANDOM MADV_RANDOM #define posix_madvise(ptr, sz, hint) madvise((ptr), (sz), (hint)) -#ifndef CLOCK_MONOTONIC -#define CLOCK_MONOTONIC CLOCK_REALTIME -#endif - #ifndef MSG_WAITALL #define MSG_WAITALL 0x40 #endif +#define FIO_USE_GENERIC_SWAP + +#define FIO_OS_HAVE_AIOCB_TYPEDEF +typedef struct aiocb64 os_aiocb_t; + 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)