initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / asm-mips / resource.h
blob62e1ce0282f8dc351b4d3df9c9c44497fe249e1b
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 1995, 96, 98, 99, 2000 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 */
9 #ifndef _ASM_RESOURCE_H
10 #define _ASM_RESOURCE_H
13 * Resource limits
15 #define RLIMIT_CPU 0 /* CPU time in ms */
16 #define RLIMIT_FSIZE 1 /* Maximum filesize */
17 #define RLIMIT_DATA 2 /* max data size */
18 #define RLIMIT_STACK 3 /* max stack size */
19 #define RLIMIT_CORE 4 /* max core file size */
20 #define RLIMIT_NOFILE 5 /* max number of open files */
21 #define RLIMIT_AS 6 /* mapped memory */
22 #define RLIMIT_RSS 7 /* max resident set size */
23 #define RLIMIT_NPROC 8 /* max number of processes */
24 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
25 #define RLIMIT_LOCKS 10 /* maximum file locks held */
26 #define RLIMIT_SIGPENDING 11 /* max number of pending signals */
27 #define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */
29 #define RLIM_NLIMITS 13 /* Number of limit flavors. */
31 #ifdef __KERNEL__
33 #include <linux/config.h>
36 * SuS says limits have to be unsigned.
37 * Which makes a ton more sense anyway.
39 #ifdef CONFIG_MIPS32
40 #define RLIM_INFINITY 0x7fffffffUL
41 #endif
42 #ifdef CONFIG_MIPS64
43 #define RLIM_INFINITY (~0UL)
44 #endif
46 #define INIT_RLIMITS \
47 { \
48 { RLIM_INFINITY, RLIM_INFINITY }, \
49 { RLIM_INFINITY, RLIM_INFINITY }, \
50 { RLIM_INFINITY, RLIM_INFINITY }, \
51 { _STK_LIM, RLIM_INFINITY }, \
52 { 0, RLIM_INFINITY }, \
53 { INR_OPEN, INR_OPEN }, \
54 { RLIM_INFINITY, RLIM_INFINITY }, \
55 { RLIM_INFINITY, RLIM_INFINITY }, \
56 { MLOCK_LIMIT, MLOCK_LIMIT }, \
57 { RLIM_INFINITY, RLIM_INFINITY }, \
58 { RLIM_INFINITY, RLIM_INFINITY }, \
59 { MAX_SIGPENDING, MAX_SIGPENDING }, \
60 { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
63 #endif /* __KERNEL__ */
65 #endif /* _ASM_RESOURCE_H */