1/* +++ GENERATED FILE +++ DO NOT EDIT +++ */ 2/*- 3 * Copyright (c) 2013, 2015, 2020 4 * mirabilos <[email protected]> 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 * Keep {r,u}limits.opt in sync with each other! 22 */ 23 24#ifndef RLIMITS_OPTCS 25#if defined(RLIMITS_DEFNS) 26__RCSID("$MirOS: src/bin/mksh/ulimits.opt,v 1.2 2020/07/24 20:50:11 tg Exp $"); 27#elif defined(RLIMITS_ITEMS) 28#define FN(lname,lg,ls,lw,lopt) (const struct limits *)(&rlimits_ ## lg), 29#endif 30#ifndef F0 31#define F0 FN 32#endif 33#ifdef KSH_UL_GFIL 34FN("file(blocks)", KSH_UL_GFIL, KSH_UL_SFIL, KSH_UL_WFIL, 'f') 35#endif 36#ifdef KSH_UL_GBRK 37FN("data(KiB)", KSH_UL_GBRK, 0, false, 'd') 38#endif 39#ifdef KSH_UL_GDES 40FN("nofiles(descriptors)", KSH_UL_GDES, 0, false, 'n') 41#endif 42#undef F0 43#undef FN 44#undef RLIMITS_DEFNS 45#undef RLIMITS_ITEMS 46#else 47"a" 48#ifdef KSH_UL_GBRK 49"d" 50#endif 51#ifdef KSH_UL_GFIL 52"f" 53#endif 54"H" 55#ifdef KSH_UL_GDES 56"n" 57#endif 58"S" 59#undef RLIMITS_OPTCS 60#endif 61