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