mirror of
https://github.com/fluencelabs/musl
synced 2025-06-13 23:11:51 +00:00
LFS64 alias for prlimit
issue reported/requested by Justin Cormack
This commit is contained in:
@ -57,6 +57,7 @@ int setpriority (int, id_t, int);
|
|||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
|
int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
|
||||||
|
#define prlimit64 prlimit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PRIO_PROCESS 0
|
#define PRIO_PROCESS 0
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include "syscall.h"
|
#include "syscall.h"
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit)
|
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);
|
return syscall(SYS_prlimit64, pid, resource, new_limit, old_limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LFS64(prlimit);
|
||||||
|
Reference in New Issue
Block a user