From 83008fa495535aaef74def5ab4ed59967fff1bb6 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 11 Jun 2020 17:41:16 -0300 Subject: linux: Add prlimit64 C implementation 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. --- sysdeps/unix/sysv/linux/hppa/prlimit64.c | 2 ++ sysdeps/unix/sysv/linux/hppa/syscalls.list | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 sysdeps/unix/sysv/linux/hppa/prlimit64.c (limited to 'sysdeps/unix/sysv/linux/hppa') diff --git a/sysdeps/unix/sysv/linux/hppa/prlimit64.c b/sysdeps/unix/sysv/linux/hppa/prlimit64.c new file mode 100644 index 0000000..4554c81 --- /dev/null +++ b/sysdeps/unix/sysv/linux/hppa/prlimit64.c @@ -0,0 +1,2 @@ +#define VERSION_prlimit64 GLIBC_2_17 +#include diff --git a/sysdeps/unix/sysv/linux/hppa/syscalls.list b/sysdeps/unix/sysv/linux/hppa/syscalls.list index cc5305a..12e4ade 100644 --- a/sysdeps/unix/sysv/linux/hppa/syscalls.list +++ b/sysdeps/unix/sysv/linux/hppa/syscalls.list @@ -9,5 +9,4 @@ shutdown - shutdown i:ii __shutdown shutdown socket - socket i:iii __socket socket socketpair - socketpair i:iiif __socketpair socketpair -prlimit64 EXTRA prlimit64 i:iipp __prlimit64 prlimit64@@GLIBC_2.17 personality EXTRA personality Ei:i __personality personality -- cgit v1.1