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