summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2010-05-12 15:06:46 +0200
committerJens Axboe <jens.axboe@oracle.com>2010-05-12 15:06:46 +0200
commit7452440e1efb40680fdc951eebc7499a95a62f86 (patch)
treebd17a2e2b82aea977bb7b9735b717b6741a6cc14 /os/os.h
parent045396879167669c3809474422bc20866c81f6d0 (diff)
downloadfio-7452440e1efb40680fdc951eebc7499a95a62f86.tar.gz
fio-7452440e1efb40680fdc951eebc7499a95a62f86.tar.bz2
fio netbsd support
Preliminary NetBSD support. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os.h')
-rw-r--r--os/os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/os.h b/os/os.h
index d128f027..b7fce80c 100644
--- a/os/os.h
+++ b/os/os.h
@@ -8,6 +8,8 @@
#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__)
@@ -48,6 +50,7 @@
#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