aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * file.c (rb_file_s_lstat): Back out.knu2009-03-232-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated typeknu2009-03-232-2/+6
| | | | | | | | checks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (init_heap): set default to heap slots lengthnari2009-03-232-0/+16
| | | | | | | | | if HEAP_OBJ_LIMIT is larger than HEAP_MIN_SLOTS. [Bug #1310] (set_heaps_increment): increment next_heaps_length if next_heaps_length and heaps_used are same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn): use original command if not found.nobu2009-03-232-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/depend (link_so): replaces $(TARGET) with basename of thenobu2009-03-223-4/+16
| | | | | | | target. [ruby-talk:330286] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL asnobu2009-03-224-32/+85
| | | | | | | application name for batch files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-211-0/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (write_would_block): defined.akr2009-03-214-24/+126
| | | | | | | | | | | | | | | | (read_would_block): defined. (ossl_start_ssl): add nonblock argument. (ossl_ssl_connect): follow ossl_start_ssl change. (ossl_ssl_connect_nonblock): new method. (ossl_ssl_accept): follow ossl_start_ssl change. (ossl_ssl_accept_nonblock): new method. (ossl_ssl_read_internal): use write_would_block and read_would_block. (ossl_ssl_write_internal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl: updated svn:ignore.nobu2009-03-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960].nobu2009-03-201-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb: skips tests need fd inheritance.nobu2009-03-201-11/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_conv_from_wstr): added.nobu2009-03-201-56/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_exec): prints error message only on platformsnobu2009-03-202-6/+20
| | | | | | | neither close-on-exec nor spawnv is supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): omit program namenobu2009-03-202-50/+122
| | | | | | | if actual program path is found. [ruby-core:22960] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_open): should pass program name even if multiplenobu2009-03-202-1/+6
| | | | | | | arguments are given. fix for TestProcess::test_argv0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-21svn2009-03-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rbakr2009-03-205-7/+113
| | | | | | | | | | | (OpenSSL::Buffering#write_nonblock): new method. * ext/openssl/ossl_ssl.c (ossl_ssl_write_nonblock): new method. (ossl_ssl_write_internal): defined. (ossl_ssl_write): use ossl_ssl_write_internal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (errmap): added ERROR_MOD_NOT_FOUND.nobu2009-03-202-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: a patch was being attached to [Bug#1305].nobu2009-03-201-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (libprefix): must not append "lib" after $(libdir),nobu2009-03-202-2/+7
| | | | | | | when load_relative is not used on darwin. [ruby-dev:38182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: commit miss.nobu2009-03-201-0/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-20svn2009-03-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc and NEWS.akr2009-03-193-0/+66
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use IO::WaitWritable.akr2009-03-192-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_mWaitReadable): defined.akr2009-03-1920-70/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_mWaitWritable): defined. (io_getpartial): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. (rb_io_write_nonblock): extend IO::WaitWritable on EWOULDBLOCK and EAGAIN. * error.c (make_errno_exc): extracted from rb_sys_fail. (rb_mod_sys_fail): new function. * include/ruby/ruby.h (rb_mod_sys_fail): declared. (rb_mWaitReadable): declared. (rb_mWaitWritable): declared. * ext/socket/init.c (rsock_s_recvfrom_nonblock): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. (rsock_s_accept_nonblock): extend IO::WaitReadable on EWOULDBLOCK, EAGAIN, ECONNABORTED and EPROTO. * ext/socket/socket.c (sock_connect_nonblock): extend IO::WaitWritable on EINPROGRESS. * ext/socket/ancdata.c (bsock_sendmsg_internal): extend IO::WaitWritable on EWOULDBLOCK and EAGAIN. (bsock_recvmsg_internal): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): raise SSLError extended by IO::WaitReadable/IO::WaitWritable on SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE. * ext/openssl/ossl.c (ossl_make_error): extracted from ossl_raise. (ossl_exc_new): new function. * ext/openssl/ossl.h (ossl_exc_new): declared. * lib/net/protocol.rb (rbuf_fill): rescue IO::WaitReadable and IO::WaitWritable. [ruby-core:22539], [ruby-dev:38140] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_CHECK_SIZEOF): allows qualified name.nobu2009-03-194-58/+60
| | | | | | | | | | | | | | * configure.in (RUBY_REPLACE_TYPE): checks more strictly. * configure.in (struct stat.st_size, struct stat.st_blocks), (struct stat.st_ino): check for size. * lib/mkmf.rb (check_sizeof): allows qualified name. * file.c (rb_stat_ino, rb_stat_blocks): check by size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* pattern refined for ldd on OpenBSD.akr2009-03-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c: not use pktinfo.ipi_spec_dst if not definedtakano322009-03-183-4/+12
| | | | | | | * ext/socket/extconf.rb: define HAVE_IPI_SPEC_DST git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb (TestSyslog#test_open): checkkazu2009-03-182-2/+9
| | | | | | | param after block again. because detect not to call block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb (TestSyslog#test_open): checkkazu2009-03-182-3/+8
| | | | | | | block parameter in block. [ruby-dev:38180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (report_bug): rb_bug can be caused by extensionnobu2009-03-182-1/+8
| | | | | | | libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-18svn2009-03-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb (open_server_inaddr_any): fixed multiple networkseki2009-03-172-9/+9
| | | | | | | | families problem. a patch from Charl Matthee at [ruby-core:21033]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (package): creates .revision.time and passesnobu2009-03-172-1/+7
| | | | | | | CHDIR to create prerequisite files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-171-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (Enumerator#{each_,}{with_index,with_object}): Fixknu2009-03-172-5/+20
| | | | | | | | a bug where any parameter but the first one is dropped even if multiple values are yielded with. [Bug #1198] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ifchange: removed newer substitution syntax.nobu2009-03-171-2/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make ./goruby -e 'p "abc".gs(/a/) { $& }' prints "abc".akr2009-03-171-2/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#sub): set $~ in block.binding.akr2009-03-173-1/+29
| | | | | | | [ruby-dev:38173] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): added RUBY_COREDLL.nobu2009-03-174-1/+44
| | | | | | | | * ext/dl/handle.c (rb_dlhandle_initialize): returns msvcrt if libc or RUBY_COREDLL is given. [ruby-core:22828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-171-4/+42
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c, dln.c, parse.y, re.c, ruby.c, sprintf.c, strftime.c,nobu2009-03-1711-35/+46
| | | | | | | | string.c, util.c, variable.c: use strlcpy, memcpy and snprintf instead of strcpy, strncpy and sprintf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-17svn2009-03-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl: made indent style insistent.nobu2009-03-173-160/+160
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.nobu2009-03-162-3/+8
| | | | | | | [ruby-core:22827] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),nobu2009-03-162-4/+9
| | | | | | | (lib_watchdog_core): tv_usec is not time_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_spawn_internal): suppressed a warning.nobu2009-03-161-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (REVISION_H): keeps timestamp of revision.h.nobu2009-03-164-17/+61
| | | | | | | | | [ruby-core:22900] * tool/ifchange, win32/ifchange.bat: extended --timestamp option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk, win32/Makefile.sub: added preprocessing rules.nobu2009-03-165-3/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e