aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * hash.c (ruby_setenv): MSDN says that Windows XP or earlier limitsusa2011-03-082-0/+8
| | | | | | | | | the total size of environment block to 5,120 chars. and on such OS, putenv() causes SEGV. So, ruby should limit the size of an environment variable to 5,120 bytes for workaround. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem_spec_fetcher.rbusa2011-03-082-1/+9
| | | | | | | | | (TestGemSpecFetcher#test_cache_dir_escapes_windows_paths): cache_dir may have driveletter and `:' for base of cache_dir itself, so need to skip it for checking. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-deep-indent-paren-p, ruby-calculate-indent):nobu2011-03-082-5/+19
| | | | | | | do not apply deep-indent inside parens at the beginning of expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos and remove trailing spaceskazu2011-03-081-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (configure-ext, build-ext), ext/extmk.rb (extmake):nobu2011-03-084-14/+81
| | | | | | support paralell-make under ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setgroups): use getgrnam() if getgrnam_r() isnobu2011-03-083-5/+14
| | | | | | not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: RARRAY_LEN() returns long int.nobu2011-03-082-8/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_REPLACE_TYPE): enclose in quotes for multiplenobu2011-03-082-1/+9
| | | | | | type names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (get_sc_ngroups_max): define to wrap sysconf(3).naruse2011-03-072-2/+19
| | | | | | | | | | this also supports Windows which doesn't have sysconf(3). * process.c (maxgroups): use get_sc_ngroups_max. * process.c (proc_setmaxgroups): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_objspace): an initializer must be a constant.naruse2011-03-072-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (maxgroups): cast because sysconf(3)'s return value is long.naruse2011-03-072-3/+11
| | | | | | | | * process.c (proc_setmaxgroups): ditto. * process.c (proc_setgroups): cast because RARRAY_LEN() is long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-03-08svn2011-03-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.akr2011-03-072-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb: Delete variable @transaction and fix #4474. Patch bysorah2011-03-073-17/+39
| | | | | | | | Masaki Matsushita (Glass_saga). * test/test_pstore.rb(test_thread_safe): Add test for #4474. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* small cleanup.kosaki2011-03-071-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setgroups): replace getgrnam() with getgrnam_r()kosaki2011-03-072-5/+21
| | | | | | | | because getgrnam() isn't thread safe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_getmaxgroups, proc_setmaxgroups): refrectkosaki2011-03-072-6/+26
| | | | | | | | platform maxgroups limitation by default instead hardcoded 65536. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cancel subversion backfire. sorrymatz2011-03-0763-711/+1828
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-03-07svn2011-03-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_set_params): allow GC parameter configuration bymatz2011-03-0767-1842/+770
| | | | | | | environment variables. based on a patch from funny-falcon at https://gist.github.com/856296, but honors safe level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/test_parallel.rbnagachika2011-03-071-1/+0
| | | | | | | (test_should_run_all_without_any_leaks): accomplish r31023. [ruby-dev:43300] [Bug #4466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: NUM2RLIM is defined but no getrlimit and setrlimit onnobu2011-03-072-6/+11
| | | | | | mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (tr_trans): suppress signedness/unsignedness warnings.nobu2011-03-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c (DateTimeData): should not use bare 'long long'nobu2011-03-061-0/+8
| | | | | | | | and 'long double', which are not defined by C89. * ext/date/date_core.c (dt_lite_plus): get rid of overflow at casting down double to integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix of ext/date/date_core.nobu2011-03-062-29/+17
| | | | | | | | | | * ext/date/date_core.c (DateTimeData): should not use bare 'long long' and 'long double', which are not defined by C89. * ext/date/date_core.c (dt_lite_plus): get rid of overflow at casting down double to integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-03-07svn2011-03-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_getgroups): get rid of maxgroups dependency.kosaki2011-03-062-2/+11
| | | | | | | | ngroups can be calculated dynamically. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism.kosaki2011-03-063-28/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setmaxgroups): added negative value check.kosaki2011-03-062-1/+10
| | | | | | | | | This was suggested by Daniel Berger. Thanks Daniel! [ruby-core:35426][Bug#4467] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (maxgroups, proc_setmaxgroups): increase max groupskosaki2011-03-062-3/+29
| | | | | | | | limitation up to 65536. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkey_ec.c: parenthesize macro arguments.akr2011-03-062-22/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/list.rb (MyElem#initialize): initialize @headkosaki2011-03-062-0/+9
| | | | | | | | | | | explicitely. Otherwise -W2 option makes following warning. "warning: instance variable @head not initialized". This issue was founded by Andrew Grimm. Thanks Andrew! [ruby-core:35435][Bug#4471] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c: fix camelCase to snake_case in documentation code examples.naruse2011-03-057-27/+43
| | | | | | | | | | | | | | | | patched by Andrew Grimm. fixes Bug #4469 * marshal.c: ditto. * proc.c: ditto. * sample/biorhythm.rb: ditto. * vm_eval.c: ditto. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-03-06svn2011-03-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_cntl): use rb_thread_io_blocking_region() insteadkosaki2011-03-052-1/+6
| | | | | | | | rb_thread_blocking_region(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: fix a typo of prototype declaration.nagachika2011-03-052-1/+6
| | | | | | rb_mutex_try_lock -> rb_mutex_trylock [ruby-dev:43213] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (TestIO#test_fcntl_lock): small clean up.kosaki2011-03-052-28/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-03-05svn2011-03-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_cntl, nogvl_io_cntl): IO.fcntl() and IO.ioctl()kosaki2011-03-043-13/+75
| | | | | | | | | | | | release GVL during calling kernel interface. Suggested by Eric Wong. [ruby-core:35417][Bug #4463] * test/ruby/test_io.rb (TestIO#test_fcntl_lock): add new test for IO.fcntl(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gitignore: ignore ext/date and ext/-test-/*/*.nagachika2011-03-041-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/test_parallel.rbnagachika2011-03-042-0/+7
| | | | | | | (test_should_run_all_without_any_leaks): consider that the order of testcase could change. [ruby-dev:43300] [Bug #4466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_cntl): change 'cmd' type to int. ioctl and fcntl need tokosaki2011-03-042-3/+9
| | | | | | | | | be passed int. * io.c (rb_io_ctl): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: save warnflags. the patch is created by Eric Wong.kosaki2011-03-042-0/+6
| | | | | | | | [Bug #4465] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments.akr2011-03-032-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-03-04svn2011-03-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb (Symbol#call): new method.nobu2011-03-031-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_redirect_fd, check_exec_redirect): raiseusa2011-03-033-7/+21
| | | | | | | | | | | ArgumentError if fd >= 3 on Windows because the feature is not supported. * test/ruby/test_process.rb (test_execopts_redirect): remove meaningless argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (test_execopts_redirect): redirecting fdusa2011-03-032-6/+16
| | | | | | | | >= 3 is not supported on Windows, so should not specify such options when calling spawn or others. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_slice_bang): raise error when the string is frozen.naruse2011-03-032-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* incompatibility arround REXML is reverted in r31008. ref #3990naruse2011-03-031-5/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e