about summary refs log tree commit diff
path: root/src/misc/prlimit.c
blob: b9dbb4462ee8f17ee289e65e360238ce482b8834 (plain) (blame)
1
2
3
4
5
6
7
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);
}