Make fdatasync OS optional
[fio.git] / os / os-freebsd.h
index f4c5e235b698986e030ddc18f3dbd164ca918215..062c44cdc3363c5ee6436257a78530f1e08bb221 100644 (file)
@@ -7,11 +7,12 @@
 #define FIO_HAVE_POSIXAIO
 #define FIO_HAVE_ODIRECT
 #define FIO_USE_GENERIC_BDEV_SIZE
+#define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_FDATASYNC
 
 #define OS_MAP_ANON            MAP_ANON
 
 typedef unsigned long os_cpu_mask_t;
-typedef unsigned int os_random_state_t;
 
 static inline int blockdev_invalidate_cache(int fd)
 {
@@ -28,19 +29,6 @@ static inline unsigned long long os_phys_mem(void)
        return mem;
 }
 
-static inline void os_random_seed(unsigned long seed, os_random_state_t *rs)
-{
-       srand(seed);
-}
-
-static inline long os_random_long(os_random_state_t *rs)
-{
-       long val;
-
-       val = rand_r(rs);
-       return val;
-}
-
 #ifdef MADV_FREE
 #define FIO_MADV_FREE  MADV_FREE
 #endif