1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 261730c53SDavid Howells /* 361730c53SDavid Howells * This file is subject to the terms and conditions of the GNU General Public 461730c53SDavid Howells * License. See the file "COPYING" in the main directory of this archive 561730c53SDavid Howells * for more details. 661730c53SDavid Howells * 761730c53SDavid Howells * Copyright (C) 1995, 96, 98, 99, 2000 by Ralf Baechle 861730c53SDavid Howells * Copyright (C) 1999 Silicon Graphics, Inc. 961730c53SDavid Howells */ 1061730c53SDavid Howells #ifndef _ASM_RESOURCE_H 1161730c53SDavid Howells #define _ASM_RESOURCE_H 1261730c53SDavid Howells 1361730c53SDavid Howells 1461730c53SDavid Howells /* 1561730c53SDavid Howells * These five resource limit IDs have a MIPS/Linux-specific ordering, 1661730c53SDavid Howells * the rest comes from the generic header: 1761730c53SDavid Howells */ 1861730c53SDavid Howells #define RLIMIT_NOFILE 5 /* max number of open files */ 1961730c53SDavid Howells #define RLIMIT_AS 6 /* address space limit */ 2061730c53SDavid Howells #define RLIMIT_RSS 7 /* max resident set size */ 2161730c53SDavid Howells #define RLIMIT_NPROC 8 /* max number of processes */ 2261730c53SDavid Howells #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ 2361730c53SDavid Howells 2461730c53SDavid Howells /* 2561730c53SDavid Howells * SuS says limits have to be unsigned. 2661730c53SDavid Howells * Which makes a ton more sense anyway, 2761730c53SDavid Howells * but we keep the old value on MIPS32, 2861730c53SDavid Howells * for compatibility: 2961730c53SDavid Howells */ 30f746caa3SRalf Baechle #ifndef __mips64 3161730c53SDavid Howells # define RLIM_INFINITY 0x7fffffffUL 3261730c53SDavid Howells #endif 3361730c53SDavid Howells 3461730c53SDavid Howells #include <asm-generic/resource.h> 3561730c53SDavid Howells 3661730c53SDavid Howells #endif /* _ASM_RESOURCE_H */ 37