1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 254579826SDavid Howells /* 354579826SDavid Howells * resource.h: Resource definitions. 454579826SDavid Howells * 554579826SDavid Howells * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu) 654579826SDavid Howells */ 754579826SDavid Howells 854579826SDavid Howells #ifndef _SPARC_RESOURCE_H 954579826SDavid Howells #define _SPARC_RESOURCE_H 1054579826SDavid Howells 1154579826SDavid Howells /* 1254579826SDavid Howells * These two resource limit IDs have a Sparc/Linux-specific ordering, 1354579826SDavid Howells * the rest comes from the generic header: 1454579826SDavid Howells */ 1554579826SDavid Howells #define RLIMIT_NOFILE 6 /* max number of open files */ 1654579826SDavid Howells #define RLIMIT_NPROC 7 /* max number of processes */ 1754579826SDavid Howells 1854579826SDavid Howells #if defined(__sparc__) && defined(__arch64__) 1954579826SDavid Howells /* Use generic version */ 2054579826SDavid Howells #else 2154579826SDavid Howells /* 2254579826SDavid Howells * SuS says limits have to be unsigned. 2354579826SDavid Howells * We make this unsigned, but keep the 2454579826SDavid Howells * old value for compatibility: 2554579826SDavid Howells */ 2654579826SDavid Howells #define RLIM_INFINITY 0x7fffffff 2754579826SDavid Howells #endif 2854579826SDavid Howells 2954579826SDavid Howells #include <asm-generic/resource.h> 3054579826SDavid Howells 3154579826SDavid Howells #endif /* !(_SPARC_RESOURCE_H) */ 32