MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / include / asm-s390 / resource.h
blob05720dbdfe89f4e44d9af2801aef07e91c507337
1 /*
2 * include/asm-s390/resource.h
4 * S390 version
6 * Derived from "include/asm-i386/resources.h"
7 */
9 #ifndef _S390_RESOURCE_H
10 #define _S390_RESOURCE_H
13 * Resource limits
16 #define RLIMIT_CPU 0 /* CPU time in ms */
17 #define RLIMIT_FSIZE 1 /* Maximum filesize */
18 #define RLIMIT_DATA 2 /* max data size */
19 #define RLIMIT_STACK 3 /* max stack size */
20 #define RLIMIT_CORE 4 /* max core file size */
21 #define RLIMIT_RSS 5 /* max resident set size */
22 #define RLIMIT_NPROC 6 /* max number of processes */
23 #define RLIMIT_NOFILE 7 /* max number of open files */
24 #define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */
25 #define RLIMIT_AS 9 /* address space limit */
26 #define RLIMIT_LOCKS 10 /* maximum file locks held */
27 #define RLIMIT_SIGPENDING 11 /* max number of pending signals */
28 #define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */
30 #define RLIM_NLIMITS 13
33 * SuS says limits have to be unsigned.
34 * Which makes a ton more sense anyway.
36 #define RLIM_INFINITY (~0UL)
38 #ifdef __KERNEL__
40 #define INIT_RLIMITS \
41 { \
42 { RLIM_INFINITY, RLIM_INFINITY }, \
43 { RLIM_INFINITY, RLIM_INFINITY }, \
44 { RLIM_INFINITY, RLIM_INFINITY }, \
45 { _STK_LIM, RLIM_INFINITY }, \
46 { 0, RLIM_INFINITY }, \
47 { RLIM_INFINITY, RLIM_INFINITY }, \
48 { 0, 0 }, \
49 { INR_OPEN, INR_OPEN }, \
50 { MLOCK_LIMIT, MLOCK_LIMIT }, \
51 { RLIM_INFINITY, RLIM_INFINITY }, \
52 { RLIM_INFINITY, RLIM_INFINITY }, \
53 { MAX_SIGPENDING, MAX_SIGPENDING }, \
54 { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
57 #endif /* __KERNEL__ */
59 #endif