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