blob: 1fba00c2207714bc83c3911ca393954ec3afb1b1 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 96, 98, 99, 2000 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 */
9#ifndef _ASM_RESOURCE_H
10#define _ASM_RESOURCE_H
11
12#include <linux/config.h>
13
14/*
15 * These five resource limit IDs have a MIPS/Linux-specific ordering,
16 * the rest comes from the generic header:
17 */
18#define RLIMIT_NOFILE 5 /* max number of open files */
19#define RLIMIT_AS 6 /* address space limit */
20#define RLIMIT_RSS 7 /* max resident set size */
21#define RLIMIT_NPROC 8 /* max number of processes */
22#define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
23
24/*
25 * SuS says limits have to be unsigned.
26 * Which makes a ton more sense anyway,
27 * but we keep the old value on MIPS32,
28 * for compatibility:
29 */
Ralf Baechle875d43e2005-09-03 15:56:16 -070030#ifdef CONFIG_32BIT
Linus Torvalds1da177e2005-04-16 15:20:36 -070031# define RLIM_INFINITY 0x7fffffffUL
32#endif
33
34#include <asm-generic/resource.h>
35
36#endif /* _ASM_RESOURCE_H */