162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 462306a36Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 562306a36Sopenharmony_ci * for more details. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (C) 1995, 96, 98, 99, 2000 by Ralf Baechle 862306a36Sopenharmony_ci * Copyright (C) 1999 Silicon Graphics, Inc. 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci#ifndef _ASM_RESOURCE_H 1162306a36Sopenharmony_ci#define _ASM_RESOURCE_H 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci/* 1562306a36Sopenharmony_ci * These five resource limit IDs have a MIPS/Linux-specific ordering, 1662306a36Sopenharmony_ci * the rest comes from the generic header: 1762306a36Sopenharmony_ci */ 1862306a36Sopenharmony_ci#define RLIMIT_NOFILE 5 /* max number of open files */ 1962306a36Sopenharmony_ci#define RLIMIT_AS 6 /* address space limit */ 2062306a36Sopenharmony_ci#define RLIMIT_RSS 7 /* max resident set size */ 2162306a36Sopenharmony_ci#define RLIMIT_NPROC 8 /* max number of processes */ 2262306a36Sopenharmony_ci#define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* 2562306a36Sopenharmony_ci * SuS says limits have to be unsigned. 2662306a36Sopenharmony_ci * Which makes a ton more sense anyway, 2762306a36Sopenharmony_ci * but we keep the old value on MIPS32, 2862306a36Sopenharmony_ci * for compatibility: 2962306a36Sopenharmony_ci */ 3062306a36Sopenharmony_ci#ifndef __mips64 3162306a36Sopenharmony_ci# define RLIM_INFINITY 0x7fffffffUL 3262306a36Sopenharmony_ci#endif 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#include <asm-generic/resource.h> 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci#endif /* _ASM_RESOURCE_H */ 37