This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-m32r / resource.h
1 #ifndef _ASM_M32R_RESOURCE_H
2 #define _ASM_M32R_RESOURCE_H
3
4 /* $Id$ */
5
6 /* orig : i386 2.4.18 */
7
8 /*
9  * Resource limits
10  */
11
12 #define RLIMIT_CPU      0               /* CPU time in ms */
13 #define RLIMIT_FSIZE    1               /* Maximum filesize */
14 #define RLIMIT_DATA     2               /* max data size */
15 #define RLIMIT_STACK    3               /* max stack size */
16 #define RLIMIT_CORE     4               /* max core file size */
17 #define RLIMIT_RSS      5               /* max resident set size */
18 #define RLIMIT_NPROC    6               /* max number of processes */
19 #define RLIMIT_NOFILE   7               /* max number of open files */
20 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
21 #define RLIMIT_AS       9               /* address space limit */
22 #define RLIMIT_LOCKS    10              /* maximum file locks held */
23 #define RLIMIT_SIGPENDING 11            /* max number of pending signals */
24 #define RLIMIT_MSGQUEUE 12              /* maximum bytes in POSIX mqueues */
25
26 #define RLIM_NLIMITS    13
27
28 /*
29  * SuS says limits have to be unsigned.
30  * Which makes a ton more sense anyway.
31  */
32 #define RLIM_INFINITY   (~0UL)
33
34 #ifdef __KERNEL__
35
36 #define INIT_RLIMITS                                    \
37 {                                                       \
38         { RLIM_INFINITY, RLIM_INFINITY },               \
39         { RLIM_INFINITY, RLIM_INFINITY },               \
40         { RLIM_INFINITY, RLIM_INFINITY },               \
41         {      _STK_LIM, RLIM_INFINITY },               \
42         {             0, RLIM_INFINITY },               \
43         { RLIM_INFINITY, RLIM_INFINITY },               \
44         {             0,             0 },               \
45         {      INR_OPEN,     INR_OPEN  },               \
46         { MLOCK_LIMIT,   MLOCK_LIMIT   },               \
47         { RLIM_INFINITY, RLIM_INFINITY },               \
48         { RLIM_INFINITY, RLIM_INFINITY },               \
49         { MAX_SIGPENDING, MAX_SIGPENDING },             \
50         { MQ_BYTES_MAX, MQ_BYTES_MAX },                 \
51 }
52
53 #endif /* __KERNEL__ */
54
55 #endif  /* _ASM_M32R_RESOURCE_H */