X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-hpux.h;h=515a5256878a1d57f6f2fb651f05c2fa66b2af7b;hb=bae743b1ed1fb245ace451f81baa0949def35814;hp=821c91690b12c8165488c5d2e99170d98a77e1af;hpb=93bcfd20e37cef8cec350fe06d3a086724c9f257;p=fio.git diff --git a/os/os-hpux.h b/os/os-hpux.h index 821c9169..515a5256 100644 --- a/os/os-hpux.h +++ b/os/os-hpux.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include #include @@ -19,17 +19,10 @@ #include "../file.h" -#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 -#define FIO_HAVE_PSHARED_MUTEX -#define FIO_HAVE_FADVISE #define FIO_HAVE_CHARDEV_SIZE -#define FIO_HAVE_FALLOCATE -#define FIO_HAVE_POSIXAIO_FSYNC -#define FIO_HAVE_FDATASYNC #define OS_MAP_ANON MAP_ANONYMOUS #define OS_MSG_DONTWAIT 0 @@ -39,31 +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 -#ifdef LITTLE_ENDIAN -#define FIO_LITTLE_ENDIAN -#else -#define FIO_BIG_ENDIAN -#endif - #define FIO_USE_GENERIC_SWAP #define FIO_OS_HAVE_AIOCB_TYPEDEF typedef struct aiocb64 os_aiocb_t; -#define FIO_OS_HAVE_SOCKLEN_T -typedef int fio_socklen_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)