add linux readahead syscall

This commit is contained in:
Rich Felker committed 2012-09-08 00:40:37 -04:00
1 parent adb88e773b
commit 90f770523f
2 files changed
+9

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#define _GNU_SOURCE
#include <fcntl.h>
#include "syscall.h"
ssize_t readahead(int fd, off_t pos, size_t len)
{
return syscall(SYS_readahead, fd, __SYSCALL_LL_O(pos), len);
}