summaryrefslogblamecommitdiff
path: root/src/linux/prlimit.c
blob: d1639ccaf1c0cbeb742e7d214ee9f6e256d48335 (plain) (tree)
1
2
3
4
5
6
7
8
9
                   

                         
                 




                                                                                              
 
                
               
#define _GNU_SOURCE
#include <sys/resource.h>
#include "syscall.h"
#include "libc.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);
}

#undef prlimit64
LFS64(prlimit);