remove LFS64 symbol aliases; replace with dynamic linker remapping
[musl.git] / src / fcntl / posix_fadvise.c
blob07346d21ae2f1eefe8c987d08c727bedc21bf259
1 #include <fcntl.h>
2 #include "syscall.h"
4 int posix_fadvise(int fd, off_t base, off_t len, int advice)
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