FIO Windows update
[fio.git] / os / os-mac.h
index 77c21656d34bfbbeb3fcec50f9fc79a5439e4cb2..39a2f827408fd25bf30172e05921908170bef180 100644 (file)
 #endif
 
 #define FIO_HAVE_POSIXAIO
+#define FIO_HAVE_CLOCK_MONOTONIC
 #define FIO_USE_GENERIC_BDEV_SIZE
+#define FIO_USE_GENERIC_RAND
 
 #define OS_MAP_ANON            MAP_ANON
 
-typedef unsigned long os_cpu_mask_t;
-typedef unsigned int os_random_state_t;
 typedef unsigned int clockid_t;
+typedef off_t off64_t;
 
-static inline int blockdev_invalidate_cache(int fd)
+static inline int blockdev_invalidate_cache(struct fio_file fio_unused *f)
 {
        return EINVAL;
 }
@@ -35,18 +36,4 @@ static inline unsigned long long os_phys_mem(void)
        sysctl(mib, 2, &mem, &len, NULL, 0);
        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;
-}
-
 #endif