X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-mac.h;h=39a2f827408fd25bf30172e05921908170bef180;hp=77c21656d34bfbbeb3fcec50f9fc79a5439e4cb2;hb=ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe;hpb=2afd826bf6cd19900aee70ae14ede92d91b6f4c0 diff --git a/os/os-mac.h b/os/os-mac.h index 77c21656..39a2f827 100644 --- a/os/os-mac.h +++ b/os/os-mac.h @@ -13,15 +13,16 @@ #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