about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/hppa/prlimit64.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-06-11 17:41:16 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-11-30 13:13:03 -0300
commit83008fa495535aaef74def5ab4ed59967fff1bb6 (patch)
tree0ba20ad426e1d301233f777263a366734659eb36 /sysdeps/unix/sysv/linux/hppa/prlimit64.c
parentdf4cb2280e32187380520f71bd27ab32252cbc85 (diff)
downloadglibc-83008fa495535aaef74def5ab4ed59967fff1bb6.tar.gz
glibc-83008fa495535aaef74def5ab4ed59967fff1bb6.tar.xz
glibc-83008fa495535aaef74def5ab4ed59967fff1bb6.zip
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/hppa/prlimit64.c')
-rw-r--r--sysdeps/unix/sysv/linux/hppa/prlimit64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/prlimit64.c b/sysdeps/unix/sysv/linux/hppa/prlimit64.c
new file mode 100644
index 0000000000..4554c81dd9
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/prlimit64.c
@@ -0,0 +1,2 @@
+#define VERSION_prlimit64 GLIBC_2_17
+#include <sysdeps/unix/sysv/linux/prlimit64.c>