OSDN Git Service

Remove auto addition of ~/bin subdirectories to the path.
[android-x86/external-mksh.git] / src / rlimits.opt
1 @RLIMITS_DEFNS
2 __RCSID("$MirOS: src/bin/mksh/rlimits.opt,v 1.2 2015/05/01 23:16:31 tg Exp $");
3 @RLIMITS_ITEMS
4 #define FN(lname,lid,lfac,lopt) (const struct limits *)(&rlimits_ ## lid),
5 @@
6
7 /* generic options for the ulimit builtin */
8
9 <a|
10 <H|
11 <S|
12
13 /* do not use options -H, -S or -a or change the order */
14
15 >t|RLIMIT_CPU
16 FN("time(cpu-seconds)", RLIMIT_CPU, 1
17
18 >f|RLIMIT_FSIZE
19 FN("file(blocks)", RLIMIT_FSIZE, 512
20
21 >c|RLIMIT_CORE
22 FN("coredump(blocks)", RLIMIT_CORE, 512
23
24 >d|RLIMIT_DATA
25 FN("data(KiB)", RLIMIT_DATA, 1024
26
27 >s|RLIMIT_STACK
28 FN("stack(KiB)", RLIMIT_STACK, 1024
29
30 >l|RLIMIT_MEMLOCK
31 FN("lockedmem(KiB)", RLIMIT_MEMLOCK, 1024
32
33 >n|RLIMIT_NOFILE
34 FN("nofiles(descriptors)", RLIMIT_NOFILE, 1
35
36 >p|RLIMIT_NPROC
37 FN("processes", RLIMIT_NPROC, 1
38
39 >w|RLIMIT_SWAP
40 FN("swap(KiB)", RLIMIT_SWAP, 1024
41
42 >T|RLIMIT_TIME
43 FN("humantime(seconds)", RLIMIT_TIME, 1
44
45 >V|RLIMIT_NOVMON
46 FN("vnodemonitors", RLIMIT_NOVMON, 1
47
48 >i|RLIMIT_SIGPENDING
49 FN("sigpending", RLIMIT_SIGPENDING, 1
50
51 >q|RLIMIT_MSGQUEUE
52 FN("msgqueue(bytes)", RLIMIT_MSGQUEUE, 1
53
54 >M|RLIMIT_AIO_MEM
55 FN("AIOlockedmem(KiB)", RLIMIT_AIO_MEM, 1024
56
57 >O|RLIMIT_AIO_OPS
58 FN("AIOoperations", RLIMIT_AIO_OPS, 1
59
60 >C|RLIMIT_TCACHE
61 FN("cachedthreads", RLIMIT_TCACHE, 1
62
63 >B|RLIMIT_SBSIZE
64 FN("sockbufsiz(KiB)", RLIMIT_SBSIZE, 1024
65
66 >P|RLIMIT_PTHREAD
67 FN("threadsperprocess", RLIMIT_PTHREAD, 1
68
69 >e|RLIMIT_NICE
70 FN("maxnice", RLIMIT_NICE, 1
71
72 >r|RLIMIT_RTPRIO
73 FN("maxrtprio", RLIMIT_RTPRIO, 1
74
75 >m|ULIMIT_M_IS_RSS
76 FN("resident-set(KiB)", RLIMIT_RSS, 1024
77 >m|ULIMIT_M_IS_VMEM
78 FN("memory(KiB)", RLIMIT_VMEM, 1024
79
80 >v|ULIMIT_V_IS_VMEM
81 FN("virtual-memory(KiB)", RLIMIT_VMEM, 1024
82 >v|ULIMIT_V_IS_AS
83 FN("address-space(KiB)", RLIMIT_AS, 1024
84
85 |RLIMITS_OPTCS