#ifndef FIO_OS_H
#define FIO_OS_H
+#include <sys/types.h>
+#include <unistd.h>
+
#if defined(__linux__)
#include "os-linux.h"
#elif defined(__FreeBSD__)
#include "os-freebsd.h"
+#elif defined(__NetBSD__)
+#include "os-netbsd.h"
#elif defined(__sun__)
#include "os-solaris.h"
#elif defined(__APPLE__)
#include "os-mac.h"
+#elif defined(_AIX)
+#include "os-aix.h"
#else
#error "unsupported os"
#endif
#include "../lib/strsep.h"
#endif
+#ifdef MSG_DONTWAIT
+#define OS_MSG_DONTWAIT MSG_DONTWAIT
+#endif
+
#ifndef FIO_HAVE_FADVISE
#define fadvise(fd, off, len, advice) (0)
#define fio_getaffinity(pid, mask) do { } while (0)
#define fio_cpu_clear(mask, cpu) do { } while (0)
#define fio_cpuset_exit(mask) (-1)
+typedef unsigned long os_cpu_mask_t;
#endif
#ifndef FIO_HAVE_IOPRIO
}
#endif
+#ifndef FIO_HAVE_FS_STAT
+static inline unsigned long long get_fs_size(const char *path)
+{
+ return 0;
+}
+#endif
+
#endif