mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-13 16:54:16 +03:00
![Rich Felker](/assets/img/avatar_default.png)
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.
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
|