2 __RCSID("$MirOS: src/bin/mksh/rlimits.opt,v 1.2 2015/05/01 23:16:31 tg Exp $");
4 #define FN(lname,lid,lfac,lopt) (const struct limits *)(&rlimits_ ## lid),
7 /* generic options for the ulimit builtin */
13 /* do not use options -H, -S or -a or change the order */
16 FN("time(cpu-seconds)", RLIMIT_CPU, 1
19 FN("file(blocks)", RLIMIT_FSIZE, 512
22 FN("coredump(blocks)", RLIMIT_CORE, 512
25 FN("data(KiB)", RLIMIT_DATA, 1024
28 FN("stack(KiB)", RLIMIT_STACK, 1024
31 FN("lockedmem(KiB)", RLIMIT_MEMLOCK, 1024
34 FN("nofiles(descriptors)", RLIMIT_NOFILE, 1
37 FN("processes", RLIMIT_NPROC, 1
40 FN("swap(KiB)", RLIMIT_SWAP, 1024
43 FN("humantime(seconds)", RLIMIT_TIME, 1
46 FN("vnodemonitors", RLIMIT_NOVMON, 1
49 FN("sigpending", RLIMIT_SIGPENDING, 1
52 FN("msgqueue(bytes)", RLIMIT_MSGQUEUE, 1
55 FN("AIOlockedmem(KiB)", RLIMIT_AIO_MEM, 1024
58 FN("AIOoperations", RLIMIT_AIO_OPS, 1
61 FN("cachedthreads", RLIMIT_TCACHE, 1
64 FN("sockbufsiz(KiB)", RLIMIT_SBSIZE, 1024
67 FN("threadsperprocess", RLIMIT_PTHREAD, 1
70 FN("maxnice", RLIMIT_NICE, 1
73 FN("maxrtprio", RLIMIT_RTPRIO, 1
76 FN("resident-set(KiB)", RLIMIT_RSS, 1024
78 FN("memory(KiB)", RLIMIT_VMEM, 1024
81 FN("virtual-memory(KiB)", RLIMIT_VMEM, 1024
83 FN("address-space(KiB)", RLIMIT_AS, 1024