Fix verify random bytes filling
[fio.git] / os / os-linux.h
index 3f410d9cc44aa22b71c1d9c40982703d2c980ef2..1bf7e62a42ca8840fcfeef4ef7bc668476084948 100644 (file)
@@ -23,7 +23,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 +63,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);
@@ -204,14 +199,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;