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
25#define RLIM_NLIMITS	11
26
27#ifdef __KERNEL__
28
29/*
30 * SuS says limits have to be unsigned.
31 * Which makes a ton more sense anyway.
32 */
33#define RLIM_INFINITY	(~0UL)
34
35
36#define INIT_RLIMITS							\
37{									\
38	{ RLIM_INFINITY, RLIM_INFINITY },		\
39	{ RLIM_INFINITY, RLIM_INFINITY },		\
40	{ RLIM_INFINITY, RLIM_INFINITY },		\
41	{      _STK_LIM, RLIM_INFINITY },		\
42	{             0, RLIM_INFINITY },		\
43	{ RLIM_INFINITY, RLIM_INFINITY },		\
44	{             0,             0 },		\
45	{      INR_OPEN,     INR_OPEN  },		\
46	{ RLIM_INFINITY, RLIM_INFINITY },		\
47	{ RLIM_INFINITY, RLIM_INFINITY },		\
48	{ RLIM_INFINITY, RLIM_INFINITY },		\
49}
50
51#endif /* __KERNEL__ */
52
53#endif /* _PPC64_RESOURCE_H */
54