linux: Add prlimit64 C implementation

System Internals / glibc - Adhemerval Zanella [linaro.org] - 30 November 2021 16:13 UTC

The LFS prlimit64 requires a arch-specific implementation in syscalls.list. Instead add a generic one that handles the required symbol alias for __RLIM_T_MATCHES_RLIM64_T.

HPPA is the only outlier which requires a different default symbol.

Checked on x86_64-linux-gnu and with build for the affected ABIs.

83008fa495 linux: Add prlimit64 C implementation
sysdeps/unix/sysv/linux/Makefile | 2 +-
sysdeps/unix/sysv/linux/arm/syscalls.list | 2 --
.../sysv/linux/generic/wordsize-32/syscalls.list | 4 ---
sysdeps/unix/sysv/linux/hppa/prlimit64.c | 2 ++
sysdeps/unix/sysv/linux/hppa/syscalls.list | 1 -
sysdeps/unix/sysv/linux/i386/syscalls.list | 2 --
sysdeps/unix/sysv/linux/m68k/syscalls.list | 1 -
sysdeps/unix/sysv/linux/microblaze/syscalls.list | 1 -
sysdeps/unix/sysv/linux/mips/mips32/syscalls.list | 3 --
.../unix/sysv/linux/mips/mips64/n32/syscalls.list | 2 --
.../unix/sysv/linux/mips/mips64/n64/syscalls.list | 2 --
.../sysv/linux/powerpc/powerpc32/syscalls.list | 2 --
sysdeps/unix/sysv/linux/prlimit.c | 5 +++
sysdeps/unix/sysv/linux/prlimit64.c | 39 ++++++++++++++++++++++
sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list | 1 -
sysdeps/unix/sysv/linux/sh/syscalls.list | 2 --
.../unix/sysv/linux/sparc/sparc32/syscalls.list | 2 --
sysdeps/unix/sysv/linux/wordsize-64/syscalls.list | 1 -
18 files changed, 47 insertions(+), 27 deletions(-)

Upstream: sourceware.org


  • Share