From fe3968fb8f2674a83caa66d8f0efc4c6be2e00e0 Mon Sep 17 00:00:00 2001
From: Dan Burkert <dan@danburkert.com>
Date: Wed, 4 Nov 2015 22:20:29 -0800
Subject: [PATCH] Linux readahead(2) binding

---
 src/unix/notbsd/linux/mod.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index e48be8bc..62e22621 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -316,6 +316,8 @@ extern {
                      offset: ::off_t, len: ::off_t) -> ::c_int;
     pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
                            len: ::off_t) -> ::c_int;
+    pub fn readahead(fd: ::c_int, offset: ::off64_t,
+                     count: ::size_t) -> ::ssize_t;
 }
 
 cfg_if! {
-- 
GitLab