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