162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * resource.h: Resource definitions. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu) 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef _SPARC_RESOURCE_H 962306a36Sopenharmony_ci#define _SPARC_RESOURCE_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* 1262306a36Sopenharmony_ci * These two resource limit IDs have a Sparc/Linux-specific ordering, 1362306a36Sopenharmony_ci * the rest comes from the generic header: 1462306a36Sopenharmony_ci */ 1562306a36Sopenharmony_ci#define RLIMIT_NOFILE 6 /* max number of open files */ 1662306a36Sopenharmony_ci#define RLIMIT_NPROC 7 /* max number of processes */ 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#if defined(__sparc__) && defined(__arch64__) 1962306a36Sopenharmony_ci/* Use generic version */ 2062306a36Sopenharmony_ci#else 2162306a36Sopenharmony_ci/* 2262306a36Sopenharmony_ci * SuS says limits have to be unsigned. 2362306a36Sopenharmony_ci * We make this unsigned, but keep the 2462306a36Sopenharmony_ci * old value for compatibility: 2562306a36Sopenharmony_ci */ 2662306a36Sopenharmony_ci#define RLIM_INFINITY 0x7fffffff 2762306a36Sopenharmony_ci#endif 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#include <asm-generic/resource.h> 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci#endif /* !(_SPARC_RESOURCE_H) */ 32