From 3dd27f3aabf03b109c30648c3f7a209302deee7f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 1 Jul 2016 13:32:35 -0400 Subject: fix posix_fadvise syscall args on powerpc, unify with arm fix commit 6d38c9cf80f47623e5e48190046673bbd0dc410b provided an arm-specific version of posix_fadvise to address the alternate argument order the kernel expects on arm, but neglected to address that powerpc (32-bit) has the same issue. instead of having arch variant files in duplicate, simply put the alternate version in the top-level file under the control of a macro defined in syscall_arch.h. --- src/fcntl/arm/posix_fadvise.c | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/fcntl/arm/posix_fadvise.c (limited to 'src/fcntl/arm') diff --git a/src/fcntl/arm/posix_fadvise.c b/src/fcntl/arm/posix_fadvise.c deleted file mode 100644 index 5c52f6b8..00000000 --- a/src/fcntl/arm/posix_fadvise.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include "syscall.h" -#include "libc.h" - -int posix_fadvise(int fd, off_t base, off_t len, int advice) -{ - /* ARM-specific syscall argument order */ - return -__syscall(SYS_fadvise, fd, advice, - __SYSCALL_LL_E(base), __SYSCALL_LL_E(len)); -} - -LFS64(posix_fadvise); -- cgit v1.2.1