Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * This file is subject to the terms and conditions of the GNU General Public
0004  * License.  See the file "COPYING" in the main directory of this archive
0005  * for more details.
0006  *
0007  * Copyright (C) 1995, 96, 98, 99, 2000 by Ralf Baechle
0008  * Copyright (C) 1999 Silicon Graphics, Inc.
0009  */
0010 #ifndef _ASM_RESOURCE_H
0011 #define _ASM_RESOURCE_H
0012 
0013 
0014 /*
0015  * These five resource limit IDs have a MIPS/Linux-specific ordering,
0016  * the rest comes from the generic header:
0017  */
0018 #define RLIMIT_NOFILE       5   /* max number of open files */
0019 #define RLIMIT_AS       6   /* address space limit */
0020 #define RLIMIT_RSS      7   /* max resident set size */
0021 #define RLIMIT_NPROC        8   /* max number of processes */
0022 #define RLIMIT_MEMLOCK      9   /* max locked-in-memory address space */
0023 
0024 /*
0025  * SuS says limits have to be unsigned.
0026  * Which makes a ton more sense anyway,
0027  * but we keep the old value on MIPS32,
0028  * for compatibility:
0029  */
0030 #ifndef __mips64
0031 # define RLIM_INFINITY      0x7fffffffUL
0032 #endif
0033 
0034 #include <asm-generic/resource.h>
0035 
0036 #endif /* _ASM_RESOURCE_H */