18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * resource.h: Resource definitions.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _SPARC_RESOURCE_H
98c2ecf20Sopenharmony_ci#define _SPARC_RESOURCE_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/*
128c2ecf20Sopenharmony_ci * These two resource limit IDs have a Sparc/Linux-specific ordering,
138c2ecf20Sopenharmony_ci * the rest comes from the generic header:
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#define RLIMIT_NOFILE		6	/* max number of open files */
168c2ecf20Sopenharmony_ci#define RLIMIT_NPROC		7	/* max number of processes */
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#if defined(__sparc__) && defined(__arch64__)
198c2ecf20Sopenharmony_ci/* Use generic version */
208c2ecf20Sopenharmony_ci#else
218c2ecf20Sopenharmony_ci/*
228c2ecf20Sopenharmony_ci * SuS says limits have to be unsigned.
238c2ecf20Sopenharmony_ci * We make this unsigned, but keep the
248c2ecf20Sopenharmony_ci * old value for compatibility:
258c2ecf20Sopenharmony_ci */
268c2ecf20Sopenharmony_ci#define RLIM_INFINITY		0x7fffffff
278c2ecf20Sopenharmony_ci#endif
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#include <asm-generic/resource.h>
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif /* !(_SPARC_RESOURCE_H) */
32