Skip to content

Commit fe3968f

Browse files
committed
Linux readahead(2) binding
1 parent 85a76f8 commit fe3968f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ extern {
316316
offset: ::off_t, len: ::off_t) -> ::c_int;
317317
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
318318
len: ::off_t) -> ::c_int;
319+
pub fn readahead(fd: ::c_int, offset: ::off64_t,
320+
count: ::size_t) -> ::ssize_t;
319321
}
320322

321323
cfg_if! {

0 commit comments

Comments
 (0)