make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / asm-ppc / resource.h
1 /*
2  * BK Id: SCCS/s.resource.h 1.7 06/05/01 21:45:23 paulus
3  */
4 #ifndef _PPC_RESOURCE_H
5 #define _PPC_RESOURCE_H
6
7 #define RLIMIT_CPU      0               /* CPU time in ms */
8 #define RLIMIT_FSIZE    1               /* Maximum filesize */
9 #define RLIMIT_DATA     2               /* max data size */
10 #define RLIMIT_STACK    3               /* max stack size */
11 #define RLIMIT_CORE     4               /* max core file size */
12 #define RLIMIT_RSS      5               /* max resident set size */
13 #define RLIMIT_NPROC    6               /* max number of processes */
14 #define RLIMIT_NOFILE   7               /* max number of open files */
15 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
16 #define RLIMIT_AS       9               /* address space limit(?) */
17 #define RLIMIT_LOCKS    10              /* maximum file locks held */
18
19 #define RLIM_NLIMITS    11
20
21 #ifdef __KERNEL__
22
23 /*
24  * SuS says limits have to be unsigned.
25  * Which makes a ton more sense anyway.
26  */
27 #define RLIM_INFINITY   (~0UL)
28
29
30 #define INIT_RLIMITS                                                    \
31 {                                                                       \
32         { RLIM_INFINITY, RLIM_INFINITY },               \
33         { RLIM_INFINITY, RLIM_INFINITY },               \
34         { RLIM_INFINITY, RLIM_INFINITY },               \
35         {      _STK_LIM, RLIM_INFINITY },               \
36         {             0, RLIM_INFINITY },               \
37         { RLIM_INFINITY, RLIM_INFINITY },               \
38         {             0,             0 },               \
39         {      INR_OPEN,     INR_OPEN  },               \
40         { RLIM_INFINITY, RLIM_INFINITY },               \
41         { RLIM_INFINITY, RLIM_INFINITY },               \
42         { RLIM_INFINITY, RLIM_INFINITY },               \
43 }
44
45 #endif /* __KERNEL__ */
46
47 #endif