5 #include <sys/sysctl.h>
7 #ifndef CLOCK_MONOTONIC
8 #define CLOCK_MONOTONIC 1
11 #ifndef CLOCK_REALTIME
12 #define CLOCK_REALTIME 1
15 #define FIO_HAVE_POSIXAIO
16 #define FIO_USE_GENERIC_BDEV_SIZE
17 #define FIO_USE_GENERIC_RAND
19 #define OS_MAP_ANON MAP_ANON
21 typedef unsigned long os_cpu_mask_t;
22 typedef unsigned int clockid_t;
23 typedef off_t off64_t;
25 static inline int blockdev_invalidate_cache(int fd)
30 static inline unsigned long long os_phys_mem(void)
32 int mib[2] = { CTL_HW, HW_PHYSMEM };
33 unsigned long long mem;
34 size_t len = sizeof(mem);
36 sysctl(mib, 2, &mem, &len, NULL, 0);