18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 48c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 58c2ecf20Sopenharmony_ci * for more details. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (C) 1995, 96, 98, 99, 2000 by Ralf Baechle 88c2ecf20Sopenharmony_ci * Copyright (C) 1999 Silicon Graphics, Inc. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef _ASM_RESOURCE_H 118c2ecf20Sopenharmony_ci#define _ASM_RESOURCE_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* 158c2ecf20Sopenharmony_ci * These five resource limit IDs have a MIPS/Linux-specific ordering, 168c2ecf20Sopenharmony_ci * the rest comes from the generic header: 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci#define RLIMIT_NOFILE 5 /* max number of open files */ 198c2ecf20Sopenharmony_ci#define RLIMIT_AS 6 /* address space limit */ 208c2ecf20Sopenharmony_ci#define RLIMIT_RSS 7 /* max resident set size */ 218c2ecf20Sopenharmony_ci#define RLIMIT_NPROC 8 /* max number of processes */ 228c2ecf20Sopenharmony_ci#define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* 258c2ecf20Sopenharmony_ci * SuS says limits have to be unsigned. 268c2ecf20Sopenharmony_ci * Which makes a ton more sense anyway, 278c2ecf20Sopenharmony_ci * but we keep the old value on MIPS32, 288c2ecf20Sopenharmony_ci * for compatibility: 298c2ecf20Sopenharmony_ci */ 308c2ecf20Sopenharmony_ci#ifndef __mips64 318c2ecf20Sopenharmony_ci# define RLIM_INFINITY 0x7fffffffUL 328c2ecf20Sopenharmony_ci#endif 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#include <asm-generic/resource.h> 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#endif /* _ASM_RESOURCE_H */ 37