[PATCH] Juggle some includes, add cscope make target
[fio.git] / os-linux.h
index 865853ba4ec83381cea5059e37b808020bbd37fa..51da8dc5b8f695463b29e0216ee3f32f47fd5a94 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <sys/ioctl.h>
 #include <sys/uio.h>
+#include <sys/syscall.h>
+#include <unistd.h>
 #include <asm/unistd.h>
 
 #define FIO_HAVE_LIBAIO
@@ -62,6 +64,8 @@ static inline int vmsplice(int fd, const struct iovec *iov,
 #define SPLICE_F_MORE  (0x04)  /* expect more data */
 #define SPLICE_F_GIFT   (0x08)  /* pages passed in are a gift */
 
+#define SPLICE_DEF_SIZE        (64*1024)
+
 enum {
        IOPRIO_WHO_PROCESS = 1,
        IOPRIO_WHO_PGRP,