1 /*
2 * Process resource limits
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 1995 by Ralf Baechle
9 */
10 #ifndef __ASM_MIPS_RESOURCE_H
11 #define __ASM_MIPS_RESOURCE_H
12
13 /*
14 * Resource limits
15 */
16 #define RLIMIT_CPU 0 /* CPU time in ms */
17 #define RLIMIT_FSIZE 1 /* Maximum filesize */
18 #define RLIMIT_DATA 2 /* max data size */
19 #define RLIMIT_STACK 3 /* max stack size */
20 #define RLIMIT_CORE 4 /* max core file size */
21 #define RLIMIT_NOFILE 5 /* max number of open files */
22 #define RLIMIT_VMEM 6 /* mapped memory */
23 #define RLIMIT_AS RLIMIT_VMEM
24 #define RLIMIT_RSS 7 /* max resident set size */
25 #define RLIMIT_NPROC 8 /* max number of processes */
26 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space*/
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 /* __KERNEL__ */
47
48 #endif /* __ASM_MIPS_RESOURCE_H */