nobu
55a1b1d97a
* thread.c (rb_thread_select): preserve errno if no error
...
occurred.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-02 19:27:59 +00:00
nobu
ab8e05cc45
* win32/win32.c (rb_w32_fdcopy): suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-02 19:27:56 +00:00
nobu
7694c34157
* win32/win32.c: remove trailing spaces and no-cuddle "else".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-02 19:05:03 +00:00
svn
690072a1a5
* 2011-05-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-02 18:57:10 +00:00
nobu
88559ce46e
* include/ruby/intern.h (rb_w32_fdcopy): add prototype. fixes
...
#4640
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-02 18:57:06 +00:00
kosaki
0a1e7d1568
* lib/fileutils.rb (FileUtils#chmod): accept symbolic mode argument.
...
The patch was written by takkanm. [ruby-core:26029][Feature #2190 ]
* lib/fileutils.rb (FileUtils#fu_mode): new helper function.
* lib/fileutils.rb (FileUtils#symbolic_modes_to_i): ditto.
* lib/fileutils.rb (FileUtils#mode_mask): ditto.
* lib/fileutils.rb (FileUtils#user_mask): ditto.
* test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_symbol_mode):
new test for the above symbolic mode.
* test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_R): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-01 16:16:05 +00:00
svn
0468df6249
* 2011-05-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-01 15:38:57 +00:00
kosaki
49b4510cd1
* ext/socket/init.c (rsock_connect): add to care EINTR. based
...
on a patch from Eric Wong at [ruby-core:35621][Bug #4555 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-01 15:38:53 +00:00
kosaki
4d88169267
* thread.c (rb_thread_select): release GVL while waiting select().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 16:08:20 +00:00
svn
3cea846e42
* 2011-05-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 16:02:15 +00:00
kosaki
e140be6956
fix commit mistake of r31389.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 16:02:11 +00:00
kosaki
04202dc83d
* win32/win32.c (rb_w32_fdcopy): New. This can copy even though
...
fdset size exceed FD_SETSIZE.
* include/ruby/intern.h (rb_fd_copy): use rb_w32_fdcopy()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 14:11:34 +00:00
kosaki
3c68095b8a
* thread.c (do_select): Change arugment type to rb_fdset_t.
...
Now do_select() is free from unexpected hangup if
HAVE_RB_FD_INIT=1 [Bug #4636 ]
* thread.c (rb_thread_fd_select, rb_thread_wait_fd_rw):
adapt new argument type.
* thread.c (rb_thread_select): make dummy implementation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 11:23:08 +00:00
kosaki
225fa965bc
* thread.c (rb_fd_copy): Change function argument. Now
...
rb_fd_copy() has fully copy semantics.
* include/ruby/intern.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 11:18:14 +00:00
kosaki
2d2544c8e6
* include/ruby/intern.h (rb_thread_select): mark as deprecated.
...
* ext/io/wait/wait.c (wait_readable): use rb_thread_fd_select
instead of rb_thread_select.
* ext/socket/init.c (wait_connectable0): ditto.
* ext/readline/readline.c (readline_event): ditto.
* io.c (rb_io_wait_readable, wait_readable, rb_io_wait_writable,
wait_writable): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 11:15:15 +00:00
kosaki
4c926e9f15
* thread.c (do_select): remove useless ifdef. time calculation
...
is not heavy weight.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 11:08:39 +00:00
kosaki
5201602c27
* benchmark/bm_io_select3.rb: New.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 07:49:29 +00:00
kosaki
98c7ca9b65
* io.c (copy_stream_body, rb_io_s_copy_stream): move rb_fd_init()
...
from copy_stream_body to rb_io_s_copy_stream. fds of passing
rb_fd_term() have to be guaranteed initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 07:30:45 +00:00
kosaki
568c934373
* benchmark/bm_io_select.rb, benchmark/bm_io_select2.rb: New.
...
based on a patch from Eric Wong at [Feature #4531 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 07:16:31 +00:00
kosaki
b48537cd26
* test/io/wait/test_io_wait.rb: New. for testing ext/io/wait.
...
the patch was written by Eric Wong. [Feature #4531 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 19:09:44 +00:00
kosaki
d4dcad8746
fix eol-style
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 16:18:01 +00:00
kosaki
1bbab74398
spell fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:50:43 +00:00
kosaki
58e414b85e
* include/ruby/win32.h: remove redundunt declaration of
...
rb_w32_time_subtract().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:43:55 +00:00
svn
708034fedf
* 2011-04-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:20:05 +00:00
kosaki
ada9870af9
* thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1.
...
We don't have to call mutex_unlock() before initialize it!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 15:20:00 +00:00
nobu
5f131b648d
* thread_win32.c, include/ruby/win32.h: add prototypes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 12:12:52 +00:00
kosaki
b4c5fad4b1
* thread_win32.c (native_cond_timedwait): New. r31373 caused
...
win32 build failure.
* thread_win32.c (__cond_timedwait, abs_timespec_to_timeout_ms):
New helper functions.
* win32/win32.c (rb_w32_time_subtract): rename from subtract and
remove static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 04:18:29 +00:00
kosaki
9d4ae4ab0c
fix indentation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 03:23:13 +00:00
kosaki
eaca3529f2
set svn:eol-style property
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 02:06:36 +00:00
kosaki
3c24bc37a0
* benchmark/bm_vm4_pipe.rb: Add two new benchmark for GVL
...
performance. They was written by Koichi Sasada.
* benchmark/bm_vm4_thread_pass.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:44:32 +00:00
kosaki
e4ba4b79b6
* vm_method.c (rb_clear_cache_by_class): Revert r29673. It made
...
a segmentation fault regression. [Bug #4289 ][ruby-core:34554].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:29:22 +00:00
nobu
85c1d5d41d
* io.c (make_writeconv): do not add textmode newline decorator if any
...
newline decorator is set already. fixes #4618 , fixes #4619
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:24:54 +00:00
kosaki
7ff7a2b376
ChangeLog change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:18:51 +00:00
kosaki
6998f013ab
* thread.c (lock_func): small cleanup.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:18:11 +00:00
svn
32ae0ae1c2
* 2011-04-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:11:31 +00:00
kosaki
74c5e807f7
* thread.c (rb_mutex_lock, lock_func): Avoid busy loop and
...
performance degression. bm_vm3_thread_mutex.rb performance
change from 109.064sec to 16.331sec.
* thread.c (init_lock_timeout): New helper function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-29 01:11:28 +00:00
usa
22d5cf9226
* win32/{win32.c,dir.h} (rb_w32_uopendir): new API to pass UTF-8 path.
...
* win32/win32.c (opendir_internal, rb_w32_opendir): extract and merge
common part of rb_w32_opendir() and rb_w32_uopendir().
* dir.c (do_opendir, glob_helper): encoding.
* dir.c (dir_initialize, do_opendir): convert path to UTF-8 and call
rb_w32_uopendir() instead of rb_w32_opendir() on Windows.
fixes #4491 , reported by Joey Zhou.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-28 07:22:18 +00:00
usa
e269a71eeb
* test/dl/test_base.rb (DL::LIBC_SO): its always msvc*.dll on
...
mswin/mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-28 06:34:01 +00:00
nobu
e858442f4f
* lib/csv.rb (CSV::open): suppress universal newline decorator.
...
fixes #4603
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:07:09 +00:00
nobu
2f348762fb
* lib/csv.rb (CSV.read): no mode is needed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:07:04 +00:00
svn
c612fc92ec
* 2011-04-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:07:03 +00:00
nobu
9c48e59907
* io.c (rb_io_extract_modeenc, rb_f_backquote): set default text
...
mode. fixes #4619
* io.c (pipe_open): set universal newline decorator if needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 21:06:59 +00:00
naruse
06911f90ce
* enc/trans/emoji_iso2022_kddi.trans: ISO-2022-JP-KDDI doesn't have
...
CP932 UDA. Another reason is emacs-mule: the implementation of
stateless-iso-2022-jp doesn't support beyond 94x94 (0x7fxx);
but CP932 UDA is in 7Fxx-92xx.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-27 02:45:36 +00:00
nobu
86ed9661b8
* configure.in (STRIP): use proper toolchain. based on a patch
...
from Jon Forums at [ruby-core:35909]. fixes #4617
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 22:42:46 +00:00
nobu
dfb52b729b
* test/ruby/test_encoding.rb (test_encoding): tests for r31362.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:30:27 +00:00
tadf
322bffd84b
* ext/date/date_core.c (date_zone_to_diff): renamed.
...
* ext/date/date_parse.c: ditto.
* ext/date/date_strptime.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:23:05 +00:00
nobu
21e6862cd5
* encoding.c (enc_find): accept Encoding objects.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:17:01 +00:00
nobu
8fabd0c551
* include/ruby/win32.h (frexp, modf): fix suppressing warnings on
...
mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:14:26 +00:00
tadf
2ad123c298
use skip
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:09:14 +00:00
tadf
184e9e9d88
use skip
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:05:49 +00:00