diff options
Diffstat (limited to 'src/rlimits.gen')
-rw-r--r-- | src/rlimits.gen | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/rlimits.gen b/src/rlimits.gen index 96f5eff..5ccd007 100644 --- a/src/rlimits.gen +++ b/src/rlimits.gen @@ -21,7 +21,7 @@ #ifndef RLIMITS_OPTCS #if defined(RLIMITS_DEFNS) -__RCSID("$MirOS: src/bin/mksh/rlimits.opt,v 1.3 2015/12/12 21:08:44 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/rlimits.opt,v 1.4 2019/04/24 20:56:31 tg Exp $"); #elif defined(RLIMITS_ITEMS) #define FN(lname,lid,lfac,lopt) (const struct limits *)(&rlimits_ ## lid), #endif @@ -82,6 +82,9 @@ FN("sockbufsiz(KiB)", RLIMIT_SBSIZE, 1024, 'B') #ifdef RLIMIT_PTHREAD FN("threadsperprocess", RLIMIT_PTHREAD, 1, 'P') #endif +#ifdef RLIMIT_THREADS +FN("threadsperprocess", RLIMIT_THREADS, 1, 'r') +#endif #ifdef RLIMIT_NICE FN("maxnice", RLIMIT_NICE, 1, 'e') #endif @@ -100,6 +103,9 @@ FN("virtual-memory(KiB)", RLIMIT_VMEM, 1024, 'v') #ifdef ULIMIT_V_IS_AS FN("address-space(KiB)", RLIMIT_AS, 1024, 'v') #endif +#ifdef RLIMIT_LOCKS +FN("filelocks", RLIMIT_LOCKS, 1, 'x') +#endif #undef F0 #undef FN #undef RLIMITS_DEFNS @@ -158,6 +164,9 @@ FN("address-space(KiB)", RLIMIT_AS, 1024, 'v') #ifdef RLIMIT_RTPRIO "r" #endif +#ifdef RLIMIT_THREADS +"r" +#endif "S" #ifdef RLIMIT_STACK "s" @@ -180,5 +189,8 @@ FN("address-space(KiB)", RLIMIT_AS, 1024, 'v') #ifdef RLIMIT_SWAP "w" #endif +#ifdef RLIMIT_LOCKS +"x" +#endif #undef RLIMITS_OPTCS #endif |