diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-08 00:40:37 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-08 00:40:37 -0400 |
commit | 90f770523f54b2e63a6ad46cba0149c9dc01ddd4 (patch) | |
tree | 1187fc337d15606cc03a66f59ed6085564252427 /src | |
parent | adb88e773b3897fa222b5d1bb8e46b2d6b424214 (diff) | |
download | musl-90f770523f54b2e63a6ad46cba0149c9dc01ddd4.tar.gz musl-90f770523f54b2e63a6ad46cba0149c9dc01ddd4.tar.bz2 musl-90f770523f54b2e63a6ad46cba0149c9dc01ddd4.tar.xz musl-90f770523f54b2e63a6ad46cba0149c9dc01ddd4.zip |
add linux readahead syscall
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/readahead.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/readahead.c b/src/linux/readahead.c new file mode 100644 index 00000000..5c70bfd6 --- /dev/null +++ b/src/linux/readahead.c @@ -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); +} |