summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add reason for accept(2) failure in accept_nonblock.akr2006-05-221-2/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid useless fcntl in rb_io_set_nonblock.akr2006-05-221-6/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update *_nonblock doc.akr2006-05-221-160/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_recvfrom_nonblock): use rb_read_pendingakr2006-05-221-0/+6
| | | | | | | | instead of rb_io_read_pending. [ruby-dev:28663] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use rb_read_pending instead of rb_io_read_pending.akr2006-05-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rubyio.h (rb_io_set_nonblock): declared.akr2006-05-224-9/+501
| | | | | | | | | | | | | | | | | * io.c (rb_io_set_nonblock): new function. (io_getpartial): nonblocking read support. (io_read_nonblock): new method: IO#read_nonblock. (io_write_nonblock): new method: IO#write_nonblock. * ext/socket/socket.c (sock_connect_nonblock): new method: Socket#connect_nonblock. (sock_accept_nonblock): new method: Socket#accept_nonblock. (sock_recvfrom_nonblock): new method: Socket#recvfrom_nonblock. [ruby-core:7917] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (umethod_bind): should not update original class.matz2006-05-222-3/+7
| | | | | | | [ruby-dev:28636] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-22eban2006-05-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ev_const_get): should support constant access frommatz2006-05-222-1/+6
| | | | | | | within instance_eval(). [ruby-dev:28327] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_timeval): should round for usec floatingmatz2006-05-182-2/+9
| | | | | | | | | number. [ruby-core:07896] * time.c (time_add): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::out): support utf-8. a patch from Fujiokamatz2006-05-182-0/+7
| | | | | | | <fuj@rabbix.jp>. [ruby-dev:28649] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-18nobu2006-05-171-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.nobu2006-05-173-7/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (sys_warning): should not call a vararg functionmatz2006-05-172-1/+13
| | | | | | | rb_sys_warning() indirectly. [ruby-core:07886] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-17eban2006-05-171-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): try to reduce errors using powersOf10matz2006-05-162-21/+36
| | | | | | | table. [ruby-dev:28644] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize): should not allow modifying literalmatz2006-05-162-1/+10
| | | | | | | regexps. frozen check moved from rb_reg_initialize_m as well. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-16eban2006-05-161-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (dir_close): should not close untainted dir stream.matz2006-05-162-0/+17
| | | | | | | * dir.c (GetDIR): add tainted/frozen check for each dir operation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize): should not modify untainted objects inmatz2006-05-164-12/+22
| | | | | | | | | safe levels higher than 3. * re.c (rb_memcmp): type change from char* to const void*. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-15eban2006-05-151-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):matz2006-05-152-1/+6
| | | | | | | typo fixed. a patch from Florian Gross <florg at florg.net>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2006-05-131-0/+1
| | | | | | | [ruby-core:7865] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-13eban2006-05-131-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update readpartial doc.akr2006-05-131-7/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP.mcall): new method.akr2006-05-132-3/+22
| | | | | | | | | (Struct#pretty_print): call Kernel#class and Struct#members even if overriden. (Struct#pretty_print_cycle): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): differ addition to minimize error.matz2006-05-112-12/+55
| | | | | | | [ruby-dev:28619] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-11eban2006-05-111-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): should not raise ERANGE when the inputmatz2006-05-112-4/+8
| | | | | | | string does not have any digits. [ruby-dev:28629] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-09eban2006-05-091-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* note EAGAIN on readpartial document.akr2006-05-091-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-07eban2006-05-071-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):akr2006-05-072-1/+6
| | | | | | | | Use AF_INET6 for nameservers containing colons. patch by Stephan Maka. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-06eban2006-05-051-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap): sig should be less then NSIG. Coverity foundmatz2006-05-052-1/+7
| | | | | | | | this bug. a patch from Kevin Tew <tewk at tewk.com>. [ruby-core:07823] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to freematz2006-05-032-0/+5
| | | | | | | | type_tag. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07808] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-04eban2006-05-031-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c (syck_scan_scalar): avoid accessingmatz2006-05-033-2/+11
| | | | | | | | | | | uninitialized array element. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07809] * array.c (rb_ary_fill): initialize local variables first. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-03eban2006-05-021-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (make_hostent_internal): accept ai_familymatz2006-05-022-5/+10
| | | | | | | | check from Sam Roberts <sroberts at uniserve.com>. [ruby-core:07691] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-05-01eban2006-05-011-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_div): use floor rather than rb_Integer().matz2006-05-014-71/+81
| | | | | | | | | | | | | | [ruby-dev:28589] * numeric.c (flo_divmod): the first element of Float#divmod should be an integer. [ruby-dev:28589] * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder. * util.c (ruby_strtod): fixed wrong conversion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-04-29eban2006-04-291-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): should initializegotoyuzo2006-04-292-1/+6
| | | | | | | flag. [ruby-core:07785] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-04-28eban2006-04-281-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): should not cut off 18 digits for nomatz2006-04-282-62/+56
| | | | | | | reason. [ruby-core:07796] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-04-27eban2006-04-261-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_fill): internalize local variable "beg" tomatz2006-04-262-1/+6
| | | | | | | pacify Coverity. [ruby-core:07770] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2006-04-26eban2006-04-261-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_unpack): now supports CRLF newlines. a patch frommatz2006-04-262-0/+7
| | | | | | | <tommy at tmtm.org>. [ruby-dev:28601] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e