mirror of
git://git.musl-libc.org/musl
synced 2024-12-24 15:43:06 +00:00
3dd27f3aab
commit 6d38c9cf80
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.
10 lines
273 B
C
10 lines
273 B
C
#define __SYSCALL_LL_E(x) \
|
|
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
|
|
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
|
|
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
|
|
|
|
#undef SYSCALL_NO_INLINE
|
|
#define SYSCALL_NO_INLINE
|
|
|
|
#define SYSCALL_FADVISE_6_ARG
|