LFS64 alias for prlimit
authorRich Felker <dalias@aerifal.cx>
Fri, 21 Sep 2012 08:05:01 +0000 (04:05 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 21 Sep 2012 08:05:01 +0000 (04:05 -0400)
issue reported/requested by Justin Cormack

include/sys/resource.h
src/linux/prlimit.c

index 9536ba35149b1863bf068c2049374ab55bc2cd3d..ff8ee205a9a743a195b711fa32cd9278b9d14035 100644 (file)
@@ -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
index b9dbb4462ee8f17ee289e65e360238ce482b8834..1215248431de7eab3518f2ee146014450afd440e 100644 (file)
@@ -1,8 +1,11 @@
 #include <unistd.h>
 #include <sys/resource.h>
 #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);