1
2
3
4
5
6
7
8
9
10 #ifndef __ASM_MIPS_RESOURCE_H
11 #define __ASM_MIPS_RESOURCE_H
12
13
14
15
16 #define RLIMIT_CPU 0
17 #define RLIMIT_FSIZE 1
18 #define RLIMIT_DATA 2
19 #define RLIMIT_STACK 3
20 #define RLIMIT_CORE 4
21 #define RLIMIT_NOFILE 5
22 #define RLIMIT_VMEM 6
23 #define RLIMIT_AS RLIMIT_VMEM
24 #define RLIMIT_RSS 7
25 #define RLIMIT_NPROC 8
26 #define RLIMIT_MEMLOCK 9
27
28 #define RLIM_NLIMITS 10
29
30 #ifdef __KERNEL__
31
32 #define INIT_RLIMITS \
33 { \
34 {LONG_MAX, LONG_MAX}, \
35 {LONG_MAX, LONG_MAX}, \
36 {LONG_MAX, LONG_MAX}, \
37 {_STK_LIM, _STK_LIM}, \
38 { 0, LONG_MAX}, \
39 {NR_OPEN, NR_OPEN}, \
40 {LONG_MAX, LONG_MAX}, \
41 {LONG_MAX, LONG_MAX}, \
42 {MAX_TASKS_PER_USER, MAX_TASKS_PER_USER}, \
43 { LONG_MAX, LONG_MAX }, \
44 }
45
46 #endif
47
48 #endif