1 #ifndef _ALPHA_RESOURCE_H
2 #define _ALPHA_RESOURCE_H
8 #define RLIMIT_CPU 0 /* CPU time in ms */
9 #define RLIMIT_FSIZE 1 /* Maximum filesize */
10 #define RLIMIT_DATA 2 /* max data size */
11 #define RLIMIT_STACK 3 /* max stack size */
12 #define RLIMIT_CORE 4 /* max core file size */
13 #define RLIMIT_RSS 5 /* max resident set size */
14 #define RLIMIT_NOFILE 6 /* max number of open files */
15 #define RLIMIT_AS 7 /* address space limit(?) */
16 #define RLIMIT_NPROC 8 /* max number of processes */
17 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
19 #define RLIM_NLIMITS 10
23 #define INIT_RLIMITS \
25 {LONG_MAX, LONG_MAX}, /* RLIMIT_CPU */ \
26 {LONG_MAX, LONG_MAX}, /* RLIMIT_FSIZE */ \
27 {LONG_MAX, LONG_MAX}, /* RLIMIT_DATA */ \
28 {_STK_LIM, LONG_MAX}, /* RLIMIT_STACK */ \
29 { 0, LONG_MAX}, /* RLIMIT_CORE */ \
30 {LONG_MAX, LONG_MAX}, /* RLIMIT_RSS */ \
31 {INR_OPEN, INR_OPEN}, /* RLIMIT_NOFILE */ \
32 {LONG_MAX, LONG_MAX}, /* RLIMIT_AS */ \
33 {LONG_MAX, LONG_MAX}, /* RLIMIT_NPROC */ \
34 {LONG_MAX, LONG_MAX}, /* RLIMIT_MEMLOCK */ \
37 #endif /* __KERNEL__ */
39 #endif /* _ALPHA_RESOURCE_H */