aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/pathname.rb (Pathname#relative_path_from): compares pathnobu2009-03-283-4/+17
| | | | | | | | components according to system default case-sensitiveness. [ruby-core:22829] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-281-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ruby.imp): all symbols in static library need to benobu2009-03-282-2/+9
| | | | | | | | | exported, so that encoding-extensions can be loaded. based on a patch from Yutaka Kanemoto <kinpoco AT gmail.com> at [ruby-talk:332282]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): checks if named argument given twice.nobu2009-03-273-7/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (GETNAMEARG): remembers named arg is used, to get ridnobu2009-03-272-1/+6
| | | | | | | of too many arguments warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (link_command, cc_command, cpp_command): should notnobu2009-03-273-5/+7
| | | | | | | override extout defined in extmk.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (what_type?): checks more restrictively, andnobu2009-03-272-15/+36
| | | | | | | supports universal binary. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_cmp): negate the result of reverse comparison.akr2009-03-263-1/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-27svn2009-03-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cmpint): FIX2INT may fail on LP64 platforms.akr2009-03-262-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well formatz2009-03-262-0/+7
| | | | | | | prototypes of compatibility functions on Win32 platform. [ruby-core:22870] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would benobu2009-03-263-10/+14
| | | | | | | | | | | | usually considered to be included in text data. * lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil and is irrelevant to whether a file is binary. copied from above since TAB and newlines would be usually considered to be included in text data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considersnobu2009-03-262-2/+14
| | | | | | | --program-prefix and --program-suffix. reapplied r19923. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/{irb,rdoc}: executable.nobu2009-03-263-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (target_alias): replaces cpu with universal too.nobu2009-03-243-2/+16
| | | | | | | | | | * configure.in (target): replaces cpu with arch by --with-arch. * mkconfig.rb (TOPDIR): chops arch in config instead of RUBY_PLATFORM which varies on universal_binary. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-25svn2009-03-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb (MAJOR, MINOR, TEENY): reads from version.h always.nobu2009-03-242-17/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_CHECK_SIZEOF): need to include $4.nobu2009-03-242-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-03-24svn2009-03-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_inspect): Cannot access fptr->fd if fptr is NULL.knu2009-03-242-1/+8
| | | | | | | | | This fixes a coredump caused by: ruby -e "class X < IO; def initialize; end; end; p X.new.inspect" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_timespec): use NUM2TIMET.akr2009-03-232-4/+9
| | | | | | | | (time_s_at): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (Init_process): Better patch for eliminating anknu2009-03-232-4/+13
| | | | | | | | | "unused variable". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_initialize): Make the file variableknu2009-03-233-2/+12
| | | | | | | | | | | volatile, because FilePathValue() currently does not protect the given variable from GC. (Probably it should) * ext/sdbm/init.c (fsdbm_initialize): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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