1 /* +++ GENERATED FILE +++ DO NOT EDIT +++ */
3 * Copyright (c) 2013, 2015
4 * mirabilos <m@mirbsd.org>
6 * Provided that these terms and disclaimer and all copyright notices
7 * are retained or reproduced in an accompanying document, permission
8 * is granted to deal in this work without restriction, including un-
9 * limited rights to use, publicly perform, distribute, sell, modify,
10 * merge, give away, or sublicence.
12 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
13 * the utmost extent permitted by applicable law, neither express nor
14 * implied; without malicious intent or gross negligence. In no event
15 * may a licensor, author or contributor be held liable for indirect,
16 * direct, other damage, loss, or other issues arising in any way out
17 * of dealing in the work, even if advised of the possibility of such
18 * damage or existence of a defect, except proven that it results out
19 * of said person's immediate fault when using the work as intended.
23 #if defined(RLIMITS_DEFNS)
24 __RCSID("$MirOS: src/bin/mksh/rlimits.opt,v 1.3 2015/12/12 21:08:44 tg Exp $");
25 #elif defined(RLIMITS_ITEMS)
26 #define FN(lname,lid,lfac,lopt) (const struct limits *)(&rlimits_ ## lid),
32 FN("time(cpu-seconds)", RLIMIT_CPU, 1, 't')
35 FN("file(blocks)", RLIMIT_FSIZE, 512, 'f')
38 FN("coredump(blocks)", RLIMIT_CORE, 512, 'c')
41 FN("data(KiB)", RLIMIT_DATA, 1024, 'd')
44 FN("stack(KiB)", RLIMIT_STACK, 1024, 's')
47 FN("lockedmem(KiB)", RLIMIT_MEMLOCK, 1024, 'l')
50 FN("nofiles(descriptors)", RLIMIT_NOFILE, 1, 'n')
53 FN("processes", RLIMIT_NPROC, 1, 'p')
56 FN("swap(KiB)", RLIMIT_SWAP, 1024, 'w')
59 FN("humantime(seconds)", RLIMIT_TIME, 1, 'T')
62 FN("vnodemonitors", RLIMIT_NOVMON, 1, 'V')
64 #ifdef RLIMIT_SIGPENDING
65 FN("sigpending", RLIMIT_SIGPENDING, 1, 'i')
67 #ifdef RLIMIT_MSGQUEUE
68 FN("msgqueue(bytes)", RLIMIT_MSGQUEUE, 1, 'q')
71 FN("AIOlockedmem(KiB)", RLIMIT_AIO_MEM, 1024, 'M')
74 FN("AIOoperations", RLIMIT_AIO_OPS, 1, 'O')
77 FN("cachedthreads", RLIMIT_TCACHE, 1, 'C')
80 FN("sockbufsiz(KiB)", RLIMIT_SBSIZE, 1024, 'B')
83 FN("threadsperprocess", RLIMIT_PTHREAD, 1, 'P')
86 FN("maxnice", RLIMIT_NICE, 1, 'e')
89 FN("maxrtprio", RLIMIT_RTPRIO, 1, 'r')
91 #ifdef ULIMIT_M_IS_RSS
92 FN("resident-set(KiB)", RLIMIT_RSS, 1024, 'm')
94 #ifdef ULIMIT_M_IS_VMEM
95 FN("memory(KiB)", RLIMIT_VMEM, 1024, 'm')
97 #ifdef ULIMIT_V_IS_VMEM
98 FN("virtual-memory(KiB)", RLIMIT_VMEM, 1024, 'v')
100 #ifdef ULIMIT_V_IS_AS
101 FN("address-space(KiB)", RLIMIT_AS, 1024, 'v')
128 #ifdef RLIMIT_SIGPENDING
131 #ifdef RLIMIT_MEMLOCK
134 #ifdef RLIMIT_AIO_MEM
137 #ifdef ULIMIT_M_IS_RSS
140 #ifdef ULIMIT_M_IS_VMEM
146 #ifdef RLIMIT_AIO_OPS
149 #ifdef RLIMIT_PTHREAD
155 #ifdef RLIMIT_MSGQUEUE
174 #ifdef ULIMIT_V_IS_AS
177 #ifdef ULIMIT_V_IS_VMEM