about summary refs log tree commit diff
path: root/src/misc/prlimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/prlimit.c')
-rw-r--r--src/misc/prlimit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/prlimit.c b/src/misc/prlimit.c
new file mode 100644
index 00000000..b9dbb446
--- /dev/null
+++ b/src/misc/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);
+}