readahead.c 176 B

12345678
  1. #define _GNU_SOURCE
  2. #include <fcntl.h>
  3. #include "syscall.h"
  4. ssize_t readahead(int fd, off_t pos, size_t len)
  5. {
  6. return syscall(SYS_readahead, fd, __SYSCALL_LL_O(pos), len);
  7. }