musl/arch
Rich Felker 0fbd7d6683 fix broken struct shmid_ds on powerpc (32-bit)
the kernel structure has padding of the shm_segsz member up to 64
bits, as well as 2 unused longs at the end. somehow that was
overlooked when the powerpc port was added, and it has been broken
ever since; applications compiled with the wrong definition do not
correctly see the shm_segsz, shm_cpid, and shm_lpid members.

fixing the definition just by adding the missing padding would break
the ABI size of the structure as well as the position of the time64
shm_atime and shm_dtime members we added at the end. instead, just
move one of the unused padding members from the original end (before
time64) of the structure to the position of the missing padding. this
preserves size and preserves correct behavior of any compiled code
that was already working. programs affected by the wrong definition
need to be recompiled with the correct one.
2021-07-06 21:12:02 -04:00
..
aarch64 aarch64/bits/mman.h: add PROT_MTE from linux v5.10 2021-02-15 09:16:06 -05:00
arm bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
generic make generic bits/fcntl.h shareable with 64-bit archs 2020-09-03 17:58:17 -04:00
i386 bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
m68k bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
microblaze bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
mips bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
mips64 bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
mipsn32 bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
or1k bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
powerpc fix broken struct shmid_ds on powerpc (32-bit) 2021-07-06 21:12:02 -04:00
powerpc64 bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
riscv64 riscv: rename __NR_fstatat __NR_newfstatat 2021-06-05 11:47:16 -04:00
s390x bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
sh bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
x32 bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00
x86_64 bits/syscall.h: add process_madvise from linux v5.10 2021-02-15 09:15:54 -05:00