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.3 2015/12/12 21:08:44 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_NICE 86FN("maxnice", RLIMIT_NICE, 1, 'e') 87#endif 88#ifdef RLIMIT_RTPRIO 89FN("maxrtprio", RLIMIT_RTPRIO, 1, 'r') 90#endif 91#ifdef ULIMIT_M_IS_RSS 92FN("resident-set(KiB)", RLIMIT_RSS, 1024, 'm') 93#endif 94#ifdef ULIMIT_M_IS_VMEM 95FN("memory(KiB)", RLIMIT_VMEM, 1024, 'm') 96#endif 97#ifdef ULIMIT_V_IS_VMEM 98FN("virtual-memory(KiB)", RLIMIT_VMEM, 1024, 'v') 99#endif 100#ifdef ULIMIT_V_IS_AS 101FN("address-space(KiB)", RLIMIT_AS, 1024, 'v') 102#endif 103#undef F0 104#undef FN 105#undef RLIMITS_DEFNS 106#undef RLIMITS_ITEMS 107#else 108"a" 109#ifdef RLIMIT_SBSIZE 110"B" 111#endif 112#ifdef RLIMIT_TCACHE 113"C" 114#endif 115#ifdef RLIMIT_CORE 116"c" 117#endif 118#ifdef RLIMIT_DATA 119"d" 120#endif 121#ifdef RLIMIT_NICE 122"e" 123#endif 124#ifdef RLIMIT_FSIZE 125"f" 126#endif 127"H" 128#ifdef RLIMIT_SIGPENDING 129"i" 130#endif 131#ifdef RLIMIT_MEMLOCK 132"l" 133#endif 134#ifdef RLIMIT_AIO_MEM 135"M" 136#endif 137#ifdef ULIMIT_M_IS_RSS 138"m" 139#endif 140#ifdef ULIMIT_M_IS_VMEM 141"m" 142#endif 143#ifdef RLIMIT_NOFILE 144"n" 145#endif 146#ifdef RLIMIT_AIO_OPS 147"O" 148#endif 149#ifdef RLIMIT_PTHREAD 150"P" 151#endif 152#ifdef RLIMIT_NPROC 153"p" 154#endif 155#ifdef RLIMIT_MSGQUEUE 156"q" 157#endif 158#ifdef RLIMIT_RTPRIO 159"r" 160#endif 161"S" 162#ifdef RLIMIT_STACK 163"s" 164#endif 165#ifdef RLIMIT_TIME 166"T" 167#endif 168#ifdef RLIMIT_CPU 169"t" 170#endif 171#ifdef RLIMIT_NOVMON 172"V" 173#endif 174#ifdef ULIMIT_V_IS_AS 175"v" 176#endif 177#ifdef ULIMIT_V_IS_VMEM 178"v" 179#endif 180#ifdef RLIMIT_SWAP 181"w" 182#endif 183#undef RLIMITS_OPTCS 184#endif 185