xref: /aosp_15_r20/external/mksh/src/ulimits.gen (revision 7c356e860f31eadd15fd599fcfdb9fd21f16a9d4)
1*7c356e86SAndroid Build Coastguard Worker/* +++ GENERATED FILE +++ DO NOT EDIT +++ */
2*7c356e86SAndroid Build Coastguard Worker/*-
3*7c356e86SAndroid Build Coastguard Worker * Copyright (c) 2013, 2015, 2020
4*7c356e86SAndroid Build Coastguard Worker *	mirabilos <[email protected]>
5*7c356e86SAndroid Build Coastguard Worker *
6*7c356e86SAndroid Build Coastguard Worker * Provided that these terms and disclaimer and all copyright notices
7*7c356e86SAndroid Build Coastguard Worker * are retained or reproduced in an accompanying document, permission
8*7c356e86SAndroid Build Coastguard Worker * is granted to deal in this work without restriction, including un-
9*7c356e86SAndroid Build Coastguard Worker * limited rights to use, publicly perform, distribute, sell, modify,
10*7c356e86SAndroid Build Coastguard Worker * merge, give away, or sublicence.
11*7c356e86SAndroid Build Coastguard Worker *
12*7c356e86SAndroid Build Coastguard Worker * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
13*7c356e86SAndroid Build Coastguard Worker * the utmost extent permitted by applicable law, neither express nor
14*7c356e86SAndroid Build Coastguard Worker * implied; without malicious intent or gross negligence. In no event
15*7c356e86SAndroid Build Coastguard Worker * may a licensor, author or contributor be held liable for indirect,
16*7c356e86SAndroid Build Coastguard Worker * direct, other damage, loss, or other issues arising in any way out
17*7c356e86SAndroid Build Coastguard Worker * of dealing in the work, even if advised of the possibility of such
18*7c356e86SAndroid Build Coastguard Worker * damage or existence of a defect, except proven that it results out
19*7c356e86SAndroid Build Coastguard Worker * of said person's immediate fault when using the work as intended.
20*7c356e86SAndroid Build Coastguard Worker *-
21*7c356e86SAndroid Build Coastguard Worker * Keep {r,u}limits.opt in sync with each other!
22*7c356e86SAndroid Build Coastguard Worker */
23*7c356e86SAndroid Build Coastguard Worker
24*7c356e86SAndroid Build Coastguard Worker#ifndef RLIMITS_OPTCS
25*7c356e86SAndroid Build Coastguard Worker#if defined(RLIMITS_DEFNS)
26*7c356e86SAndroid Build Coastguard Worker__RCSID("$MirOS: src/bin/mksh/ulimits.opt,v 1.2 2020/07/24 20:50:11 tg Exp $");
27*7c356e86SAndroid Build Coastguard Worker#elif defined(RLIMITS_ITEMS)
28*7c356e86SAndroid Build Coastguard Worker#define FN(lname,lg,ls,lw,lopt) (const struct limits *)(&rlimits_ ## lg),
29*7c356e86SAndroid Build Coastguard Worker#endif
30*7c356e86SAndroid Build Coastguard Worker#ifndef F0
31*7c356e86SAndroid Build Coastguard Worker#define F0 FN
32*7c356e86SAndroid Build Coastguard Worker#endif
33*7c356e86SAndroid Build Coastguard Worker#ifdef KSH_UL_GFIL
34*7c356e86SAndroid Build Coastguard WorkerFN("file(blocks)", KSH_UL_GFIL, KSH_UL_SFIL, KSH_UL_WFIL, 'f')
35*7c356e86SAndroid Build Coastguard Worker#endif
36*7c356e86SAndroid Build Coastguard Worker#ifdef KSH_UL_GBRK
37*7c356e86SAndroid Build Coastguard WorkerFN("data(KiB)", KSH_UL_GBRK, 0, false, 'd')
38*7c356e86SAndroid Build Coastguard Worker#endif
39*7c356e86SAndroid Build Coastguard Worker#ifdef KSH_UL_GDES
40*7c356e86SAndroid Build Coastguard WorkerFN("nofiles(descriptors)", KSH_UL_GDES, 0, false, 'n')
41*7c356e86SAndroid Build Coastguard Worker#endif
42*7c356e86SAndroid Build Coastguard Worker#undef F0
43*7c356e86SAndroid Build Coastguard Worker#undef FN
44*7c356e86SAndroid Build Coastguard Worker#undef RLIMITS_DEFNS
45*7c356e86SAndroid Build Coastguard Worker#undef RLIMITS_ITEMS
46*7c356e86SAndroid Build Coastguard Worker#else
47*7c356e86SAndroid Build Coastguard Worker"a"
48*7c356e86SAndroid Build Coastguard Worker#ifdef KSH_UL_GBRK
49*7c356e86SAndroid Build Coastguard Worker"d"
50*7c356e86SAndroid Build Coastguard Worker#endif
51*7c356e86SAndroid Build Coastguard Worker#ifdef KSH_UL_GFIL
52*7c356e86SAndroid Build Coastguard Worker"f"
53*7c356e86SAndroid Build Coastguard Worker#endif
54*7c356e86SAndroid Build Coastguard Worker"H"
55*7c356e86SAndroid Build Coastguard Worker#ifdef KSH_UL_GDES
56*7c356e86SAndroid Build Coastguard Worker"n"
57*7c356e86SAndroid Build Coastguard Worker#endif
58*7c356e86SAndroid Build Coastguard Worker"S"
59*7c356e86SAndroid Build Coastguard Worker#undef RLIMITS_OPTCS
60*7c356e86SAndroid Build Coastguard Worker#endif
61