From: Rich Felker Date: Fri, 21 Sep 2012 08:05:01 +0000 (-0400) Subject: LFS64 alias for prlimit X-Git-Tag: v0.9.7~92 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f600105eef74a636a0efd1f1d07170ce5df9aa64;p=oweals%2Fmusl.git LFS64 alias for prlimit issue reported/requested by Justin Cormack --- diff --git a/include/sys/resource.h b/include/sys/resource.h index 9536ba35..ff8ee205 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -57,6 +57,7 @@ int setpriority (int, id_t, int); #ifdef _GNU_SOURCE int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); +#define prlimit64 prlimit #endif #define PRIO_PROCESS 0 diff --git a/src/linux/prlimit.c b/src/linux/prlimit.c index b9dbb446..12152484 100644 --- a/src/linux/prlimit.c +++ b/src/linux/prlimit.c @@ -1,8 +1,11 @@ #include #include #include "syscall.h" +#include "libc.h" int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit) { return syscall(SYS_prlimit64, pid, resource, new_limit, old_limit); } + +LFS64(prlimit);