mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
getrlimit adding RLIMIT_NPTS constant.
This commit is contained in:
parent
02e25db68f
commit
796069b288
Notes:
git
2022-09-21 18:08:36 +09:00
1 changed files with 8 additions and 0 deletions
|
@ -8975,6 +8975,14 @@ InitVM_process(void)
|
||||||
*/
|
*/
|
||||||
rb_define_const(rb_mProcess, "RLIMIT_NPROC", INT2FIX(RLIMIT_NPROC));
|
rb_define_const(rb_mProcess, "RLIMIT_NPROC", INT2FIX(RLIMIT_NPROC));
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RLIMIT_NPTS
|
||||||
|
/* The maximum number of pseudo-terminals that can be created for the
|
||||||
|
* real user ID of the calling process.
|
||||||
|
*
|
||||||
|
* see the system getrlimit(2) manual for details.
|
||||||
|
*/
|
||||||
|
rb_define_const(rb_mProcess, "RLIMIT_NPTS", INT2FIX(RLIMIT_NPTS));
|
||||||
|
#endif
|
||||||
#ifdef RLIMIT_RSS
|
#ifdef RLIMIT_RSS
|
||||||
/* Specifies the limit (in pages) of the process's resident set.
|
/* Specifies the limit (in pages) of the process's resident set.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue