add prlimit syscall wrapper
This commit is contained in:
parent
0b6dc09744
commit
26f38328d6
3 changed files with 18 additions and 0 deletions
8
src/misc/prlimit.c
Normal file
8
src/misc/prlimit.c
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/resource.h>
|
||||
#include "syscall.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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue