linux: Consolidate INLINE_SYSCALL

System Internals / glibc - Adhemerval Zanella [linaro.org] - 15 February 2020 00:09 UTC

With all Linux ABIs using the expected Linux kABI to indicate syscalls errors, there is no need to replicate the INLINE_SYSCALL.

The generic Linux sysdep.h includes errno.h even for !__ASSEMBLER__, which is ok now and it allows cleanup some archaic code that assume otherwise.

Checked with a build against all affected ABIs.

fcb78a5505 linux: Consolidate INLINE_SYSCALL
sysdeps/i386/pthread_spin_trylock.S | 2 +-
sysdeps/mips/nptl/tls.h | 2 +-
sysdeps/sh/nptl/pthread_spin_trylock.S | 2 +-
sysdeps/sparc/sparc32/pthread_spin_trylock.S | 2 +-
sysdeps/sparc/sparc64/pthread_spin_trylock.S | 2 +-
sysdeps/unix/arm/sysdep.S | 3 +-
sysdeps/unix/mips/sysdep.S | 3 +-
sysdeps/unix/sh/sysdep.S | 3 +-
sysdeps/unix/sysv/linux/aarch64/sysdep.h | 22 ---------------
sysdeps/unix/sysv/linux/alpha/brk.S | 3 +-
sysdeps/unix/sysv/linux/alpha/sysdep.h | 25 +----------------
sysdeps/unix/sysv/linux/arm/sysdep.h | 27 ------------------
sysdeps/unix/sysv/linux/csky/sysdep.h | 22 ---------------
sysdeps/unix/sysv/linux/hppa/sysdep.h | 30 --------------------
sysdeps/unix/sysv/linux/i386/sysdep.h | 40 +--------------------------
sysdeps/unix/sysv/linux/ia64/sysdep.h | 21 +-------------
sysdeps/unix/sysv/linux/m68k/sysdep.h | 23 +--------------
sysdeps/unix/sysv/linux/microblaze/sysdep.h | 25 +----------------
sysdeps/unix/sysv/linux/mips/mips32/sysdep.h | 29 +------------------
sysdeps/unix/sysv/linux/mips/mips64/sysdep.h | 29 +------------------
sysdeps/unix/sysv/linux/nios2/sysdep.h | 24 +---------------
sysdeps/unix/sysv/linux/powerpc/sysdep.h | 30 --------------------
sysdeps/unix/sysv/linux/riscv/sysdep.h | 20 --------------
sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h | 6 +---
sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h | 6 +---
sysdeps/unix/sysv/linux/s390/sysdep.h | 21 --------------
sysdeps/unix/sysv/linux/sh/sysdep.h | 21 --------------
sysdeps/unix/sysv/linux/sparc/sparc64/brk.S | 3 +-
sysdeps/unix/sysv/linux/sparc/sysdep.h | 22 ---------------
sysdeps/unix/sysv/linux/sysdep.h | 37 +++++++++++++++++++++++++
sysdeps/unix/sysv/linux/x86_64/sysdep.h | 36 +-----------------------
sysdeps/unix/x86_64/sysdep.S | 3 +-
sysdeps/x86_64/nptl/pthread_spin_trylock.S | 2 +-
33 files changed, 60 insertions(+), 486 deletions(-)

Upstream: sourceware.org


  • Share