projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
misc
/
setrlimit.c
1
#include <sys/resource.h>
2
#include "syscall.h"
3
#include "libc.h"
4
5
int setrlimit(int resource, const struct rlimit *rlim)
6
{
7
long k_rlim[2] = { rlim->rlim_cur, rlim->rlim_max };
8
return syscall2(__NR_setrlimit, resource, (long)k_rlim);
9
}
10
11
LFS64(setrlimit);