musl/arch/sh
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
..
bits reverse definition dependency between PAGESIZE and PAGE_SIZE 2018-03-10 17:47:14 -05:00
atomic_arch.h fix build failure for sh4a due to missing colon in asm statement 2017-08-11 21:06:57 -04:00
crt_arch.h generalize sh entry point asm not to assume call dests fit in 12 bits 2015-11-02 18:11:36 -05:00
ksigaction.h fix signal return for sh/fdpic 2015-09-23 18:33:49 +00:00
pthread_arch.h fix TLS layout of TLS variant I when there is a gap above TP 2018-06-02 19:38:44 -04:00
reloc.h fix TLS layout of TLS variant I when there is a gap above TP 2018-06-02 19:38:44 -04:00
syscall_arch.h work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00