]> git.ipfire.org Git - thirdparty/glibc.git/commit - sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
ipc: Refactor sysvipc internal definitions
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 15 May 2019 18:20:58 +0000 (15:20 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 17 Oct 2019 14:04:59 +0000 (11:04 -0300)
commit06436acf819d9e6ada7be3ca977d5c0a23d3f138
treec1fa0e3ac981c845d83b2cd985c563c7059f55e9
parent7d3db434f910c23591f748a6d0ac3548af1048bb
ipc: Refactor sysvipc internal definitions

This patch refactor the internal sysvipc in two main points:

  1. Add a new __ASSUME_SYSVIPC_DEFAULT_IPC_64 to infer the __IPC_64
     value to be used along either the multiplexed __NR_ipc or wired-up
     syscall.  The defaut value assumed for __IPC_64 is also changed
     from 0x100 to 0x0, aligning with Linux generic UAPI.  The idea
     is to simplify the Linux 5.1 wire-up for sysvipc syscalls for
     some 32-bit ABIs (which expectes __IPC_64 being 0x0) and simplify
     new ports (which will no longer need to add ipc_priv.h).

  2. It also removes some duplicated internal definition used on compat
     sysvipc symbols defined at ipc_priv.h (more specifically the
     __old_ipc_perm, SEMCTL_ARG_ADDRESS, MSGRCV_ARGS, and
     SEMTIMEDOP_IPC_ARGS).  The idea is also to make it simpler to enable
     the new wire-up sysvipc syscall provided by Linux v5.1.

There is no semantic change expected on any port.  Checked with a build
against all affected ABIs.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
22 files changed:
sysdeps/unix/sysv/linux/alpha/ipc_priv.h
sysdeps/unix/sysv/linux/alpha/kernel-features.h
sysdeps/unix/sysv/linux/arm/kernel-features.h
sysdeps/unix/sysv/linux/hppa/ipc_priv.h [deleted file]
sysdeps/unix/sysv/linux/i386/kernel-features.h
sysdeps/unix/sysv/linux/ia64/ipc_priv.h [deleted file]
sysdeps/unix/sysv/linux/ipc_priv.h
sysdeps/unix/sysv/linux/kernel-features.h
sysdeps/unix/sysv/linux/m68k/kernel-features.h
sysdeps/unix/sysv/linux/microblaze/kernel-features.h
sysdeps/unix/sysv/linux/mips/kernel-features.h
sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h
sysdeps/unix/sysv/linux/nios2/ipc_priv.h [deleted file]
sysdeps/unix/sysv/linux/nios2/kernel-features.h [moved from sysdeps/unix/sysv/linux/csky/ipc_priv.h with 75% similarity]
sysdeps/unix/sysv/linux/powerpc/ipc_priv.h
sysdeps/unix/sysv/linux/powerpc/kernel-features.h
sysdeps/unix/sysv/linux/riscv/ipc_priv.h [deleted file]
sysdeps/unix/sysv/linux/s390/kernel-features.h
sysdeps/unix/sysv/linux/sh/kernel-features.h
sysdeps/unix/sysv/linux/sparc/kernel-features.h
sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
sysdeps/unix/sysv/linux/x86_64/ipc_priv.h [deleted file]