6 #elif defined(__FreeBSD__)
7 #include "os-freebsd.h"
9 #include "os-solaris.h"
11 #error "unsupported os"
14 #ifdef FIO_HAVE_LIBAIO
18 #ifdef FIO_HAVE_POSIXAIO
27 #ifndef FIO_HAVE_FADVISE
28 #define fadvise(fd, off, len, advice) (0)
30 #define POSIX_FADV_DONTNEED (0)
31 #define POSIX_FADV_SEQUENTIAL (0)
32 #define POSIX_FADV_RANDOM (0)
33 #endif /* FIO_HAVE_FADVISE */
35 #ifndef FIO_HAVE_CPU_AFFINITY
36 #define fio_setaffinity(td) (0)
37 #define fio_getaffinity(pid, mask) (0)
40 #ifndef FIO_HAVE_IOPRIO
41 #define ioprio_set(which, who, prio) (0)
44 #ifndef FIO_HAVE_ODIRECT
47 #define OS_O_DIRECT O_DIRECT
50 #ifndef FIO_HAVE_HUGETLB
52 #define FIO_HUGE_PAGE 0
55 #define FIO_HUGE_PAGE 4194304
62 #define __must_check __attribute__((warn_unused_result))