• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* +++ GENERATED FILE +++ DO NOT EDIT +++ */
2/*-
3 * Copyright (c) 2013, 2015
4 *	mirabilos <m@mirbsd.org>
5 *
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.
11 *
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.
20 */
21
22#ifndef RLIMITS_OPTCS
23#if defined(RLIMITS_DEFNS)
24__RCSID("$MirOS: src/bin/mksh/rlimits.opt,v 1.4 2019/04/24 20:56:31 tg Exp $");
25#elif defined(RLIMITS_ITEMS)
26#define FN(lname,lid,lfac,lopt) (const struct limits *)(&rlimits_ ## lid),
27#endif
28#ifndef F0
29#define F0 FN
30#endif
31#ifdef RLIMIT_CPU
32FN("time(cpu-seconds)", RLIMIT_CPU, 1, 't')
33#endif
34#ifdef RLIMIT_FSIZE
35FN("file(blocks)", RLIMIT_FSIZE, 512, 'f')
36#endif
37#ifdef RLIMIT_CORE
38FN("coredump(blocks)", RLIMIT_CORE, 512, 'c')
39#endif
40#ifdef RLIMIT_DATA
41FN("data(KiB)", RLIMIT_DATA, 1024, 'd')
42#endif
43#ifdef RLIMIT_STACK
44FN("stack(KiB)", RLIMIT_STACK, 1024, 's')
45#endif
46#ifdef RLIMIT_MEMLOCK
47FN("lockedmem(KiB)", RLIMIT_MEMLOCK, 1024, 'l')
48#endif
49#ifdef RLIMIT_NOFILE
50FN("nofiles(descriptors)", RLIMIT_NOFILE, 1, 'n')
51#endif
52#ifdef RLIMIT_NPROC
53FN("processes", RLIMIT_NPROC, 1, 'p')
54#endif
55#ifdef RLIMIT_SWAP
56FN("swap(KiB)", RLIMIT_SWAP, 1024, 'w')
57#endif
58#ifdef RLIMIT_TIME
59FN("humantime(seconds)", RLIMIT_TIME, 1, 'T')
60#endif
61#ifdef RLIMIT_NOVMON
62FN("vnodemonitors", RLIMIT_NOVMON, 1, 'V')
63#endif
64#ifdef RLIMIT_SIGPENDING
65FN("sigpending", RLIMIT_SIGPENDING, 1, 'i')
66#endif
67#ifdef RLIMIT_MSGQUEUE
68FN("msgqueue(bytes)", RLIMIT_MSGQUEUE, 1, 'q')
69#endif
70#ifdef RLIMIT_AIO_MEM
71FN("AIOlockedmem(KiB)", RLIMIT_AIO_MEM, 1024, 'M')
72#endif
73#ifdef RLIMIT_AIO_OPS
74FN("AIOoperations", RLIMIT_AIO_OPS, 1, 'O')
75#endif
76#ifdef RLIMIT_TCACHE
77FN("cachedthreads", RLIMIT_TCACHE, 1, 'C')
78#endif
79#ifdef RLIMIT_SBSIZE
80FN("sockbufsiz(KiB)", RLIMIT_SBSIZE, 1024, 'B')
81#endif
82#ifdef RLIMIT_PTHREAD
83FN("threadsperprocess", RLIMIT_PTHREAD, 1, 'P')
84#endif
85#ifdef RLIMIT_THREADS
86FN("threadsperprocess", RLIMIT_THREADS, 1, 'r')
87#endif
88#ifdef RLIMIT_NICE
89FN("maxnice", RLIMIT_NICE, 1, 'e')
90#endif
91#ifdef RLIMIT_RTPRIO
92FN("maxrtprio", RLIMIT_RTPRIO, 1, 'r')
93#endif
94#ifdef ULIMIT_M_IS_RSS
95FN("resident-set(KiB)", RLIMIT_RSS, 1024, 'm')
96#endif
97#ifdef ULIMIT_M_IS_VMEM
98FN("memory(KiB)", RLIMIT_VMEM, 1024, 'm')
99#endif
100#ifdef ULIMIT_V_IS_VMEM
101FN("virtual-memory(KiB)", RLIMIT_VMEM, 1024, 'v')
102#endif
103#ifdef ULIMIT_V_IS_AS
104FN("address-space(KiB)", RLIMIT_AS, 1024, 'v')
105#endif
106#ifdef RLIMIT_LOCKS
107FN("filelocks", RLIMIT_LOCKS, 1, 'x')
108#endif
109#undef F0
110#undef FN
111#undef RLIMITS_DEFNS
112#undef RLIMITS_ITEMS
113#else
114"a"
115#ifdef RLIMIT_SBSIZE
116"B"
117#endif
118#ifdef RLIMIT_TCACHE
119"C"
120#endif
121#ifdef RLIMIT_CORE
122"c"
123#endif
124#ifdef RLIMIT_DATA
125"d"
126#endif
127#ifdef RLIMIT_NICE
128"e"
129#endif
130#ifdef RLIMIT_FSIZE
131"f"
132#endif
133"H"
134#ifdef RLIMIT_SIGPENDING
135"i"
136#endif
137#ifdef RLIMIT_MEMLOCK
138"l"
139#endif
140#ifdef RLIMIT_AIO_MEM
141"M"
142#endif
143#ifdef ULIMIT_M_IS_RSS
144"m"
145#endif
146#ifdef ULIMIT_M_IS_VMEM
147"m"
148#endif
149#ifdef RLIMIT_NOFILE
150"n"
151#endif
152#ifdef RLIMIT_AIO_OPS
153"O"
154#endif
155#ifdef RLIMIT_PTHREAD
156"P"
157#endif
158#ifdef RLIMIT_NPROC
159"p"
160#endif
161#ifdef RLIMIT_MSGQUEUE
162"q"
163#endif
164#ifdef RLIMIT_RTPRIO
165"r"
166#endif
167#ifdef RLIMIT_THREADS
168"r"
169#endif
170"S"
171#ifdef RLIMIT_STACK
172"s"
173#endif
174#ifdef RLIMIT_TIME
175"T"
176#endif
177#ifdef RLIMIT_CPU
178"t"
179#endif
180#ifdef RLIMIT_NOVMON
181"V"
182#endif
183#ifdef ULIMIT_V_IS_AS
184"v"
185#endif
186#ifdef ULIMIT_V_IS_VMEM
187"v"
188#endif
189#ifdef RLIMIT_SWAP
190"w"
191#endif
192#ifdef RLIMIT_LOCKS
193"x"
194#endif
195#undef RLIMITS_OPTCS
196#endif
197