Linux 5.1.15
[linux/fpc-iii.git] / include / asm-generic / resource.h
blob8874f681b056751fa9be3bee4d1a12b86f8fd1b5
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_GENERIC_RESOURCE_H
3 #define _ASM_GENERIC_RESOURCE_H
5 #include <uapi/asm-generic/resource.h>
8 /*
9 * boot-time rlimit defaults for the init task:
11 #define INIT_RLIMITS \
12 { \
13 [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \
14 [RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \
15 [RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \
16 [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \
17 [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \
18 [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \
19 [RLIMIT_NPROC] = { 0, 0 }, \
20 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
21 [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
22 [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \
23 [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \
24 [RLIMIT_SIGPENDING] = { 0, 0 }, \
25 [RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
26 [RLIMIT_NICE] = { 0, 0 }, \
27 [RLIMIT_RTPRIO] = { 0, 0 }, \
28 [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \
31 #endif