1 #ifndef _ARM_RESOURCE_H
2 #define _ARM_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_NPROC 6 /* max number of processes */
15 #define RLIMIT_NOFILE 7 /* max number of open files */
16 #define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */
17 #define RLIMIT_AS 9 /* address space limit */
18 #define RLIMIT_LOCKS 10 /* maximum file locks held */
19 #define RLIMIT_SIGPENDING 11 /* max number of pending signals */
20 #define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */
22 #define RLIM_NLIMITS 13
27 * SuS says limits have to be unsigned.
28 * Which makes a ton more sense anyway.
30 #define RLIM_INFINITY (~0UL)
32 #define INIT_RLIMITS \
34 { RLIM_INFINITY, RLIM_INFINITY }, \
35 { RLIM_INFINITY, RLIM_INFINITY }, \
36 { RLIM_INFINITY, RLIM_INFINITY }, \
37 { _STK_LIM, RLIM_INFINITY }, \
38 { 0, RLIM_INFINITY }, \
39 { RLIM_INFINITY, RLIM_INFINITY }, \
41 { INR_OPEN, INR_OPEN }, \
42 { MLOCK_LIMIT, MLOCK_LIMIT }, \
43 { RLIM_INFINITY, RLIM_INFINITY }, \
44 { RLIM_INFINITY, RLIM_INFINITY }, \
45 { MAX_SIGPENDING, MAX_SIGPENDING}, \
46 { MQ_BYTES_MAX, MQ_BYTES_MAX}, \
49 #endif /* __KERNEL__ */