musl/arch
Rich Felker 0cd2be2314 work around broken kernel struct ipc_perm on some big endian archs
the mode member of struct ipc_perm is specified by POSIX to have type
mode_t, which is uniformly defined as unsigned int. however, Linux
defines it with type __kernel_mode_t, and defines __kernel_mode_t as
unsigned short on some archs. since there is a subsequent padding
field, treating it as a 32-bit unsigned int works on little endian
archs, but the order is backwards on big endian archs with the
erroneous definition.

since multiple archs are affected, remedy the situation with fixup
code in the affected functions (shmctl, semctl, and msgctl) rather
than repeating the same shims in syscall_arch.h for every affected
arch.
2018-06-20 00:07:09 -04:00
..
aarch64 aarch64: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:17 -04:00
arm work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00
generic/bits fix minor namespace issues in termios.h 2018-03-10 18:19:41 -05:00
i386 remove a_ctz_l from arch specific atomic_arch.h 2018-04-19 12:23:17 -04:00
m68k work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00
microblaze work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00
mips mips: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:27 -04:00
mips64 mips: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:27 -04:00
mipsn32 mips: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:27 -04:00
or1k fix TLS layout of TLS variant I when there is a gap above TP 2018-06-02 19:38:44 -04:00
powerpc powerpc: add pkey syscall numbers from linux v4.16 2018-06-19 13:25:50 -04:00
powerpc64 powerpc: add pkey syscall numbers from linux v4.16 2018-06-19 13:25:50 -04:00
s390x s390x: add kexec_file_load syscall number from linux v4.17 2018-06-19 13:27:39 -04:00
sh work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00
x32 remove a_ctz_l from arch specific atomic_arch.h 2018-04-19 12:23:17 -04:00
x86_64 use PAGESIZE rather than PAGE_SIZE in user.h bits 2018-03-10 17:49:23 -05:00