glibc/sysdeps
Florian Weimer d57cdc1b5a Linux: Support __IPC_64 in sysvctl *ctl command arguments (bug 29771)
Old applications pass __IPC_64 as part of the command argument because
old glibc did not check for unknown commands, and passed through the
arguments directly to the kernel, without adding __IPC_64.
Applications need to continue doing that for old glibc compatibility,
so this commit enables this approach in current glibc.

For msgctl and shmctl, if no translation is required, make
direct system calls, as we did before the time64 changes.  If
translation is required, mask __IPC_64 from the command argument.

For semctl, the union-in-vararg argument handling means that
translation is needed on all architectures.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
(cherry picked from commit 22a46dee24)
2022-11-11 18:06:25 +01:00
..
aarch64
alpha
arc
arm
csky
generic sysdeps: Add 'get_fast_jitter' interace in fast-jitter.h 2022-09-28 07:34:31 -07:00
gnu
hppa hppa: Remove _dl_skip_args usage (BZ# 29165) 2022-06-10 09:13:54 -03:00
htl
hurd
i386
ia64
ieee754
m68k
mach socket: Check lengths before advancing pointer in CMSG_NXTHDR 2022-08-22 18:59:26 +02:00
microblaze
mips
nios2 nios2: Remove _dl_skip_args usage (BZ# 29187) 2022-06-10 09:15:00 -03:00
nptl nptl: Add backoff mechanism to spinlock loop 2022-09-28 07:34:53 -07:00
posix socket: Use 64 bit stat for isfdtype (BZ# 29209) 2022-06-01 13:34:51 -03:00
powerpc powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197] 2022-06-07 15:34:20 -03:00
pthread nptl: Fix __libc_cleanup_pop_restore asynchronous restore (BZ#29214) 2022-06-08 17:15:08 -03:00
riscv
s390 S390: Enable static PIE 2022-05-19 17:15:57 +02:00
sh
sparc
unix Linux: Support __IPC_64 in sysvctl *ctl command arguments (bug 29771) 2022-11-11 18:06:25 +01:00
wordsize-32
wordsize-64
x86 x86: include BMI1 and BMI2 in x86-64-v3 level 2022-10-04 00:00:58 +02:00
x86_64 x86-64: Require BMI1/BMI2 for AVX2 strrchr and wcsrchr implementations 2022-10-04 00:00:59 +02:00