Merge to Fedora kernel-2.6.7-1.492
[linux-2.6.git] / include / asm-ppc / resource.h
1 #ifndef _PPC_RESOURCE_H
2 #define _PPC_RESOURCE_H
3
4 #define RLIMIT_CPU      0               /* CPU time in ms */
5 #define RLIMIT_FSIZE    1               /* Maximum filesize */
6 #define RLIMIT_DATA     2               /* max data size */
7 #define RLIMIT_STACK    3               /* max stack size */
8 #define RLIMIT_CORE     4               /* max core file size */
9 #define RLIMIT_RSS      5               /* max resident set size */
10 #define RLIMIT_NPROC    6               /* max number of processes */
11 #define RLIMIT_NOFILE   7               /* max number of open files */
12 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
13 #define RLIMIT_AS       9               /* address space limit(?) */
14 #define RLIMIT_LOCKS    10              /* maximum file locks held */
15 #define RLIMIT_SIGPENDING 11            /* max number of pending signals */
16 #define RLIMIT_MSGQUEUE 12              /* maximum bytes in POSIX mqueues */
17
18 #define RLIM_NLIMITS    13
19
20 #ifdef __KERNEL__
21
22 /*
23  * SuS says limits have to be unsigned.
24  * Which makes a ton more sense anyway.
25  */
26 #define RLIM_INFINITY   (~0UL)
27
28
29 #define INIT_RLIMITS                                                    \
30 {                                                                       \
31         { RLIM_INFINITY, RLIM_INFINITY },               \
32         { RLIM_INFINITY, RLIM_INFINITY },               \
33         { RLIM_INFINITY, RLIM_INFINITY },               \
34         {      _STK_LIM, RLIM_INFINITY },               \
35         {             0, RLIM_INFINITY },               \
36         { RLIM_INFINITY, RLIM_INFINITY },               \
37         {             0,             0 },               \
38         {      INR_OPEN,     INR_OPEN  },               \
39         { PAGE_SIZE,     PAGE_SIZE     },               \
40         { RLIM_INFINITY, RLIM_INFINITY },               \
41         { RLIM_INFINITY, RLIM_INFINITY },               \
42         { MAX_SIGPENDING, MAX_SIGPENDING },             \
43         { MQ_BYTES_MAX, MQ_BYTES_MAX },                 \
44 }
45
46 #endif /* __KERNEL__ */
47
48 #endif