1#include <fcntl.h> 2#include "syscall.h" 3#include "libc.h" 4 5int posix_fadvise(int fd, off_t base, off_t len, int advice) 6{ 7#if defined(SYSCALL_FADVISE_6_ARG) 8 /* Some archs, at least arm and powerpc, have the syscall 9 * arguments reordered to avoid needing 7 argument registers 10 * due to 64-bit argument alignment. */ 11 return -__syscall(SYS_fadvise, fd, advice, 12 __SYSCALL_LL_E(base), __SYSCALL_LL_E(len)); 13#else 14 return -__syscall(SYS_fadvise, fd, __SYSCALL_LL_O(base), 15 __SYSCALL_LL_E(len), advice); 16#endif 17} 18 19LFS64(posix_fadvise); 20