VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / include / asm-ppc64 / resource.h
1 #ifndef _PPC64_RESOURCE_H
2 #define _PPC64_RESOURCE_H
3
4 /*
5  * Copyright (C) 2001 PPC 64 Team, IBM Corp
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version
10  * 2 of the License, or (at your option) any later version.
11  */
12
13 #define RLIMIT_CPU      0               /* CPU time in ms */
14 #define RLIMIT_FSIZE    1               /* Maximum filesize */
15 #define RLIMIT_DATA     2               /* max data size */
16 #define RLIMIT_STACK    3               /* max stack size */
17 #define RLIMIT_CORE     4               /* max core file size */
18 #define RLIMIT_RSS      5               /* max resident set size */
19 #define RLIMIT_NPROC    6               /* max number of processes */
20 #define RLIMIT_NOFILE   7               /* max number of open files */
21 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
22 #define RLIMIT_AS       9               /* address space limit(?) */
23 #define RLIMIT_LOCKS    10              /* maximum file locks held */
24 #define RLIMIT_SIGPENDING 11            /* max number of pending signals */
25 #define RLIMIT_MSGQUEUE 12              /* maximum bytes in POSIX mqueues */
26
27 #define RLIM_NLIMITS    13
28
29 #ifdef __KERNEL__
30
31 /*
32  * SuS says limits have to be unsigned.
33  * Which makes a ton more sense anyway.
34  */
35 #define RLIM_INFINITY   (~0UL)
36
37
38 #define INIT_RLIMITS                                                    \
39 {                                                                       \
40         { RLIM_INFINITY, RLIM_INFINITY },               \
41         { RLIM_INFINITY, RLIM_INFINITY },               \
42         { RLIM_INFINITY, RLIM_INFINITY },               \
43         {      _STK_LIM, RLIM_INFINITY },               \
44         {             0, RLIM_INFINITY },               \
45         { RLIM_INFINITY, RLIM_INFINITY },               \
46         {             0,             0 },               \
47         {      INR_OPEN,     INR_OPEN  },               \
48         { RLIM_INFINITY, RLIM_INFINITY },               \
49         { RLIM_INFINITY, RLIM_INFINITY },               \
50         { RLIM_INFINITY, RLIM_INFINITY },               \
51         { MAX_SIGPENDING, MAX_SIGPENDING },             \
52         { MQ_BYTES_MAX, MQ_BYTES_MAX },                 \
53 }
54
55 #endif /* __KERNEL__ */
56
57 #endif /* _PPC64_RESOURCE_H */