X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-linux.h;h=e7c0e47cbf0e5c23bbbe8feb0722b97d49a3ded0;hp=3f410d9cc44aa22b71c1d9c40982703d2c980ef2;hb=f3de88a7a8806016ebb27af3f4be1fced172122e;hpb=4d8947de2b50578a4f6290be567cb5de5bf46776 diff --git a/os/os-linux.h b/os/os-linux.h index 3f410d9c..e7c0e47c 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -10,6 +10,8 @@ #include #include +#include "indirect.h" + #define FIO_HAVE_LIBAIO #define FIO_HAVE_POSIXAIO #define FIO_HAVE_FADVISE @@ -23,7 +25,6 @@ #define FIO_HAVE_HUGETLB #define FIO_HAVE_RAWBIND #define FIO_HAVE_BLKTRACE -#define FIO_HAVE_SETPSHARED #define OS_MAP_ANON (MAP_ANONYMOUS) @@ -64,10 +65,6 @@ typedef struct drand48_data os_random_state_t; #endif #endif -#ifndef FIO_HAVE_SETPSHARED -#define pthread_mutexattr_setpshared(attr, pshared) (0) -#endif - static inline int ioprio_set(int which, int who, int ioprio) { return syscall(__NR_ioprio_set, which, who, ioprio); @@ -103,10 +100,6 @@ static inline int vmsplice(int fd, const struct iovec *iov, } #endif -#ifdef SPLICE_F_UNMAP -#define SPLICE_F_UNMAP (0x10) -#endif - #define SPLICE_DEF_SIZE (64*1024) #ifdef FIO_HAVE_SYSLET @@ -204,14 +197,6 @@ static inline long os_random_long(os_random_state_t *rs) return val; } -static inline double os_random_double(os_random_state_t *rs) -{ - double val; - - drand48_r(rs, &val); - return val; -} - static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev) { struct raw_config_request rq;