1 #ifndef _PPC64_RESOURCE_H
2 #define _PPC64_RESOURCE_H
5 * Copyright (C) 2001 PPC 64 Team, IBM Corp
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.
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 */
27 #define RLIM_NLIMITS 13
32 * SuS says limits have to be unsigned.
33 * Which makes a ton more sense anyway.
35 #define RLIM_INFINITY (~0UL)
38 #define INIT_RLIMITS \
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 }, \
47 { INR_OPEN, INR_OPEN }, \
48 { MLOCK_LIMIT, MLOCK_LIMIT }, \
49 { RLIM_INFINITY, RLIM_INFINITY }, \
50 { RLIM_INFINITY, RLIM_INFINITY }, \
51 { MAX_SIGPENDING, MAX_SIGPENDING }, \
52 { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
55 #endif /* __KERNEL__ */
57 #endif /* _PPC64_RESOURCE_H */