repo.or.cz
/
trinity.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
merge unlink variants
[trinity.git]
/
syscalls
/
getrlimit.c
blob
70d93d80e790ba160dca0d0db30b2908e880c9a0
1
/*
2
* SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim)
3
*/
4
#include <stdlib.h>
5
#include <sys/time.h>
6
#include <sys/resource.h>
7
#include
"sanitise.h"
8
#include
"shm.h"
9
#include
"compat.h"
10
11
struct
syscallentry syscall_getrlimit
= {
12
.
name
=
"getrlimit"
,
13
.
num_args
=
2
,
14
.
arg1name
=
"resource"
,
15
.
arg1type
=
ARG_OP
,
16
.
arg1list
= {
17
.
num
=
16
,
18
.
values
= {
19
RLIMIT_AS
,
20
RLIMIT_CORE
,
21
RLIMIT_CPU
,
22
RLIMIT_DATA
,
23
RLIMIT_FSIZE
,
24
RLIMIT_LOCKS
,
25
RLIMIT_MEMLOCK
,
26
RLIMIT_MSGQUEUE
,
27
RLIMIT_NICE
,
28
RLIMIT_NOFILE
,
29
RLIMIT_NPROC
,
30
RLIMIT_RSS
,
31
RLIMIT_RTPRIO
,
32
RLIMIT_RTTIME
,
33
RLIMIT_SIGPENDING
,
34
RLIMIT_STACK
,
35
},
36
},
37
.
arg2name
=
"rlim"
,
38
.
arg2type
=
ARG_ADDRESS
,
39
};