diff options
Diffstat (limited to 'src/linux/prlimit.c')
-rw-r--r-- | src/linux/prlimit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/prlimit.c b/src/linux/prlimit.c new file mode 100644 index 0000000..b9dbb44 --- /dev/null +++ b/src/linux/prlimit.c @@ -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); +} |