summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@23022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-21svn2009-03-201-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@23013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: commit miss.nobu2009-03-201-0/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-20svn2009-03-191-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc and NEWS.akr2009-03-193-0/+66
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use IO::WaitWritable.akr2009-03-192-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@23005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* pattern refined for ldd on OpenBSD.akr2009-03-181-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@23000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-18svn2009-03-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@22995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-171-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@22992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ifchange: removed newer substitution syntax.nobu2009-03-171-2/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@22986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-171-4/+42
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@22984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-17svn2009-03-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl: made indent style insistent.nobu2009-03-173-160/+160
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@22980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_spawn_internal): suppressed a warning.nobu2009-03-161-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@22973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated.akr2009-03-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/minitest/test_mini_test.rb: fixed tests depending on thenobu2009-03-151-5/+13
| | | | | | | detail of floating point representation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/installer.rb (Gem::Installer#shebang): fix for envnobu2009-03-153-19/+19
| | | | | | | shebang. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int.nobu2009-03-151-5/+5
| | | | | | | | | * include/ruby/ruby.h (OBJ_{TAINTED,UNTRUSTED,FROZEN}): return int. * include/ruby/encoding.h (ENC_CODERANGE): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int.nobu2009-03-152-4/+12
| | | | | | | | | * include/ruby/ruby.h (OBJ_{TAINTED,UNTRUSTED,FROZEN}): return int. * include/ruby/encoding.h (ENC_CODERANGE): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_hash_uint, rb_hash_start, rb_hash_end): use VALUEnobu2009-03-153-28/+45
| | | | | | | rather than unsigned int. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file_internal): stop the timer thread before exec.nobu2009-03-152-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (.y.c): use SRC_FILE which contains slashes instead ofnobu2009-03-154-1/+10
| | | | | | | backslashes. [ruby-core:22891] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (srcs-ext): creates ext/dl/callback/callback.c also.nobu2009-03-143-3/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb (TestFloat#test_to_s): precision wasnobu2009-03-141-1/+1
| | | | | | | increased. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (SAVED_GROUP_ID, p_gid_switch): should be rb_gid_t.nobu2009-03-142-4/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_subpat): accept capture name.akr2009-03-146-9/+47
| | | | | | | | | | | | | | | | | | | (rb_str_aref): follow above change. (rb_str_aref_m): pass the 2nd argument to rb_str_subpat. (rb_str_subpat_set): accept capture name. (rb_str_aset): follow above change. (rb_str_partition): ditto. (rb_str_aset_m): pass the 2nd argument to rb_str_subpat_set. * include/ruby/intern.h (rb_reg_backref_number): declared. * re.c (rb_reg_backref_number): defined. [ruby-core:21057] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e