linux/include/uapi/asm-generic/resource.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI_ASM_GENERIC_RESOURCE_H
#define _UAPI_ASM_GENERIC_RESOURCE_H

/*
 * Resource limit IDs
 *
 * ( Compatibility detail: there are architectures that have
 *   a different rlimit ID order in the 5-9 range and want
 *   to keep that order for binary compatibility. The reasons
 *   are historic and all new rlimits are identical across all
 *   arches. If an arch has such special order for some rlimits
 *   then it defines them prior including asm-generic/resource.h. )
 */

#define RLIMIT_CPU
#define RLIMIT_FSIZE
#define RLIMIT_DATA
#define RLIMIT_STACK
#define RLIMIT_CORE

#ifndef RLIMIT_RSS
#define RLIMIT_RSS
#endif

#ifndef RLIMIT_NPROC
#define RLIMIT_NPROC
#endif

#ifndef RLIMIT_NOFILE
#define RLIMIT_NOFILE
#endif

#ifndef RLIMIT_MEMLOCK
#define RLIMIT_MEMLOCK
#endif

#ifndef RLIMIT_AS
#define RLIMIT_AS
#endif

#define RLIMIT_LOCKS
#define RLIMIT_SIGPENDING
#define RLIMIT_MSGQUEUE
#define RLIMIT_NICE
#define RLIMIT_RTPRIO
#define RLIMIT_RTTIME
#define RLIM_NLIMITS

/*
 * SuS says limits have to be unsigned.
 * Which makes a ton more sense anyway.
 *
 * Some architectures override this (for compatibility reasons):
 */
#ifndef RLIM_INFINITY
#define RLIM_INFINITY
#endif


#endif /* _UAPI_ASM_GENERIC_RESOURCE_H */