mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
19e62f2690
sysdeps/unix/sysv/linux/bits/sem.h has padding after time fields in struct semid_ds unconditionally, and thus is only suitable for 32-bit architectures (no 64-bit configurations use this file); sysdeps/unix/sysv/linux/generic/bits/sem.h is substantively the same, except that the padding is conditioned on __WORDSIZE == 32, and so it can be used for 64-bit architectures as well. This patch adds the conditionals to sysdeps/unix/sysv/linux/bits/sem.h. The linux/generic/ version is then no longer needed and so is removed, as are the alpha, ia64 and s390 versions which are also no longer needed. The other architecture-specific versions have different padding or types and so are still needed after this change. This is essentially the same change for bits/sem.h as the bits/msq.h patch. However, the details of the padding variations for the architectures that aren't changed are not all the same between msqid_ds and semid_ds. Tested with build-many-glibcs.py. * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>. (struct semid_ds): Condition padding after time fields on [__WORDSIZE == 32]. * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file. * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise. |
||
---|---|---|
.. | ||
bits | ||
fpu | ||
s390-32 | ||
s390-64 | ||
sys | ||
brk.c | ||
configure | ||
configure.ac | ||
dl-cache.h | ||
dl-procinfo.h | ||
elision-conf.c | ||
elision-conf.h | ||
elision-lock.c | ||
elision-timed.c | ||
elision-trylock.c | ||
elision-unlock.c | ||
force-elision.h | ||
htm.h | ||
Implies | ||
init-first.c | ||
jmp-unwind.c | ||
kernel_sigaction.h | ||
kernel-features.h | ||
ldconfig.h | ||
ldd-rewrite.sed | ||
libanl.abilist | ||
libc-vdso.h | ||
localplt.data | ||
longjmp_chk.c | ||
lowlevellock.h | ||
Makefile | ||
mmap_internal.h | ||
nldbl-abi.h | ||
opensock.c | ||
pt-longjmp.c | ||
pt-vfork.S | ||
pthread_mutex_cond_lock.c | ||
pthread_mutex_lock.c | ||
pthread_mutex_timedlock.c | ||
pthread_mutex_trylock.c | ||
readelflib.c | ||
rt-sysdep.S | ||
sa_len.c | ||
semtimedop.c | ||
sigcontextinfo.h | ||
sysconf.c | ||
system.c | ||
tst-ptrace-singleblock.c | ||
ucontext_i.sym | ||
Versions |