Make it work on opensolaris
[fio.git] / os / os-linux.h
index f86ed322c150429df9d7a8e99f70c3dbd19d4028..6f2372bcd7e48bc7074928a4afa0212202ebade3 100644 (file)
@@ -10,6 +10,8 @@
 #include <linux/raw.h>
 #include <linux/major.h>
 
+#include "indirect.h"
+
 #define FIO_HAVE_LIBAIO
 #define FIO_HAVE_POSIXAIO
 #define FIO_HAVE_FADVISE
@@ -23,6 +25,7 @@
 #define FIO_HAVE_HUGETLB
 #define FIO_HAVE_RAWBIND
 #define FIO_HAVE_BLKTRACE
+#define FIO_HAVE_STRSEP
 
 #define OS_MAP_ANON            (MAP_ANONYMOUS)
 
@@ -98,10 +101,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
@@ -199,14 +198,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;
@@ -237,4 +228,6 @@ static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev)
        return 0;
 }
 
+#define FIO_O_NOATIME  O_NOATIME
+
 #endif