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