aboutsummaryrefslogtreecommitdiff
path: root/src/misc/setrlimit.c
blob: 68bd9d749fc5954aacb12bbb675675f4662cc153 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <sys/resource.h>
#include "syscall.h"
#include "libc.h"

int setrlimit(int resource, const struct rlimit *rlim)
{
	long k_rlim[2] = { rlim->rlim_cur, rlim->rlim_max };
	return syscall(SYS_setrlimit, resource, k_rlim);
}

LFS64(setrlimit);