6 #elif defined(__FreeBSD__)
7 #include "os-freebsd.h"
9 #error "unsupported os"
12 #ifdef FIO_HAVE_LIBAIO
16 #ifdef FIO_HAVE_POSIXAIO
25 #ifndef FIO_HAVE_FADVISE
26 #define fadvise(fd, off, len, advice) (0)
28 #define POSIX_FADV_DONTNEED (0)
29 #define POSIX_FADV_SEQUENTIAL (0)
30 #define POSIX_FADV_RANDOM (0)
31 #endif /* FIO_HAVE_FADVISE */
33 #ifndef FIO_HAVE_CPU_AFFINITY
34 #define fio_setaffinity(td) (0)
35 #define fio_getaffinity(pid, mask) (0)
38 #ifndef FIO_HAVE_IOPRIO
39 #define ioprio_set(which, who, prio) (0)
43 extern int fio_libaio_init(struct thread_data *);
44 extern int fio_posixaio_init(struct thread_data *);
45 extern int fio_syncio_init(struct thread_data *);
46 extern int fio_mmapio_init(struct thread_data *);
47 extern int fio_sgio_init(struct thread_data *);
48 extern int fio_spliceio_init(struct thread_data *);