This patch reinstates fallback code when the 'prlimit64' system call is missing by reverting the relevant part of this upstream commit: commit 695d7d138eda449678a1650a8b8b58181033353f Author: Joseph Myers Date: Tue May 9 14:05:09 2017 +0000 Assume prlimit64 is available. The fallback code is useful on systems that lack 'prlimit64', such as the 2.6.32-on-steroid kernel found on RHEL 6: diff --git a/sysdeps/unix/sysv/linux/getrlimit64.c b/sysdeps/unix/sysv/linux/getrlimit64.c index 37c173286f..56af3c0646 100644 --- b/sysdeps/unix/sysv/linux/getrlimit64.c +++ a/sysdeps/unix/sysv/linux/getrlimit64.c @@ -35,7 +35,40 @@ int __getrlimit64 (enum __rlimit_resource resource, struct rlimit64 *rlimits) { - return INLINE_SYSCALL_CALL (prlimit64, 0, resource, NULL, rlimits); +#ifdef __NR_prlimit64 + int res = INLINE_SYSCALL_CALL (prlimit64, 0
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-10-07 22:12:27 +0200
committerLudovic Courtès <ludo@gnu.org>2024-10-16 19:11:46 +0200
commit355795f2d81bbff27f1dbd1d2ab1e6f13daf7ee7 (