Commit graph

7022 commits

Author SHA1 Message Date
(no author)
0eef378965 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-04 11:45:10 +00:00
akr
23e5a96017 * ext/socket/socket.c: fix sockaddr_un handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-04 11:45:09 +00:00
matz
8a10bf6fc0 * lib/forwardable.rb: RDoc typo fix from Jan Svitok
<jan.svitok at gmail.com>.  [ruby-core:07943]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 13:23:02 +00:00
akr
bf9e781e33 update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 12:06:22 +00:00
gotoyuzo
13d16b8de4 * ext/openssl/extconf.rb: use create_header.
* ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
  include RUBY_EXTCONF_H.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 10:03:16 +00:00
nobu
e4b7715d0a * lib/mkmf.rb (CLEANINGS): remove extconf.h by distclean if created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-02 08:16:44 +00:00
akr
d9a2d8dab0 fix a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 17:04:24 +00:00
eban
3cafa74c00 * 2006-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:44:23 +00:00
akr
858ac7ad15 * ext/socket/socket.c (s_recvfrom): alen may be zero with UNIXSocket
too.  (tested on NetBSD 3.0)
  (s_recvfrom_nonblock): extracted from sock_recvfrom_nonblock.
  (sock_recvfrom_nonblock): use s_recvfrom_nonblock.
  (ip_recvfrom_nonblock): new method: IPSocket#recvfrom_nonblock
  (unix_recvfrom_nonblock): new method: UNIXSocket#recvfrom_nonblock
  (s_accept_nonblock): extracted from sock_accept_nonblock.
  (sock_accept_nonblock): use s_accept_nonblock.
  (tcp_accept_nonblock): new method: TCPServer#accept_nonblock
  (unix_accept_nonblock): new method: UNIXServer#accept_nonblock


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:33:10 +00:00
(no author)
a7253cf695 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:33:10 +00:00
akr
ad565e7cbf * ext/socket/socket.c (s_recvfrom): alen may be zero with UNIXSocket
too.  (tested on NetBSD 3.0)
  (s_recvfrom_nonblock): extracted from sock_recvfrom_nonblock.
  (sock_recvfrom_nonblock): use s_recvfrom_nonblock.
  (ip_recvfrom_nonblock): new method: IPSocket#recvfrom_nonblock
  (unix_recvfrom_nonblock): new method: UNIXSocket#recvfrom_nonblock
  (s_accept_nonblock): extracted from sock_accept_nonblock.
  (sock_accept_nonblock): use s_accept_nonblock.
  (tcp_accept_nonblock): new method: TCPServer#accept_nonblock
  (unix_accept_nonblock): new method: UNIXServer#accept_nonblock


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 15:33:09 +00:00
nobu
ae6dedc7f0 * win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes
no longer has special meanings.  fixed: [ruby-list:42311]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 10:13:41 +00:00
usa
02821cc038 * win32/win32.c (rb_w32_getcwd): runtime's getcwd() will not success
if the length of the cwd is longer than MAX_PATH.
  fixed [ruby-list:42335]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 07:18:12 +00:00
usa
0395b953b5 * 2006-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 02:35:10 +00:00
usa
ee39e2578a * win32/win32.c (rb_w32_getcwd): set errno if not set.
fixed [ruby-list:42346]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-01 02:34:30 +00:00
eban
049a4ef390 * 2006-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-27 03:00:37 +00:00
nobu
f7213e5648 * ext/extmk.rb (extmake): remove extinit files if no statically linked
extensions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-27 02:30:10 +00:00
nobu
a22c6527c9 * lib/mkmf.rb (configuration): add $defs unless extconf.h was created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-26 00:05:23 +00:00
nobu
65937b5eb9 * ruby.h, lib/mkmf.rb (create_header): clear command line options for
macros moved to extconf.h.

* ext/extmk.rb (extract_makefile, extmk): made RUBY_EXTCONF_H and
  EXTSTATIC permanent.

* ext/{dbm,digest/*,socket,zlib}/extconf.rb: used $defs and $INCFLAGS.

* {bcc32,win32,wince}/Makefile.sub (COMPILE_C, COMPILE_CXX): added
  $(INCFLAGS).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-25 23:44:08 +00:00
eban
155c33c1d1 * 2006-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-25 17:12:06 +00:00
ttate
7bdb1f5de8 * fixed the problems described in [ruby-dev:28665].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-25 16:37:58 +00:00
eban
8a98ca95cf * 2006-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 16:56:12 +00:00
nobu
aa9da28961 * mkconfig.rb: merge multiple entries to an entry with multiple lines.
* lib/mkmf.rb: allow a series of commands to link.

* win32/Makefile.sub: embed manifests.

* win32/setup.mak: suffix OS name by runtime version.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 16:52:00 +00:00
nobu
0de571b695 * ext/extmk.rb: deal with $static set in extconf.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 16:43:45 +00:00
nobu
a6000650d2 * lib/mkmf.rb (pkg_config): particular config commands support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 15:51:03 +00:00
nobu
6fab9f81f8 * configure.in (ac_install_sh): ignore dummy install-sh.
[ruby-talk:193876]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 14:52:10 +00:00
akr
2538598782 update nonblocking methods document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-24 05:06:59 +00:00
eban
8757dcf70d * 2006-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-23 23:30:46 +00:00
gotoyuzo
66c81f9be0 * ext/openssl/lib/openssl/ssl.rb
(OpenSSL::SSL::SocketForwarder#setsockopt,getsockopt): typo fixed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-23 18:14:05 +00:00
eban
6f4470e60b * 2006-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-23 01:19:19 +00:00
akr
9f3084b124 add reason for accept(2) failure in accept_nonblock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 22:34:20 +00:00
akr
c4ab77fb3b avoid useless fcntl in rb_io_set_nonblock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 22:12:57 +00:00
akr
613bc2efc0 update *_nonblock doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 22:11:30 +00:00
akr
feb9e5803e * ext/socket/socket.c (sock_recvfrom_nonblock): use rb_read_pending
instead of rb_io_read_pending.
  [ruby-dev:28663]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 08:57:18 +00:00
akr
ecf2464eab use rb_read_pending instead of rb_io_read_pending.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 08:53:30 +00:00
akr
13ddc9fdd0 * rubyio.h (rb_io_set_nonblock): declared.
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 08:38:37 +00:00
matz
db3bdf6eca * eval.c (umethod_bind): should not update original class.
[ruby-dev:28636]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 07:01:53 +00:00
eban
3495cd6307 * 2006-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 04:46:06 +00:00
matz
af89971287 * eval.c (ev_const_get): should support constant access from
within instance_eval().  [ruby-dev:28327]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-22 04:41:36 +00:00
matz
3326cc9e05 * time.c (time_timeval): should round for usec floating
number.  [ruby-core:07896]

* time.c (time_add): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-18 08:54:01 +00:00
matz
5c8d6f1bc3 * lib/cgi.rb (CGI::out): support utf-8. a patch from Fujioka
<fuj@rabbix.jp>.  [ruby-dev:28649]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-18 08:14:38 +00:00
nobu
d196598075 * 2006-05-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-17 15:48:29 +00:00
nobu
44bdf111ca * ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-17 15:42:21 +00:00
matz
7a5d128385 * dir.c (sys_warning): should not call a vararg function
rb_sys_warning() indirectly.  [ruby-core:07886]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-17 09:14:34 +00:00
eban
4341d611c1 * 2006-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-17 02:04:09 +00:00
matz
7b724e750f * util.c (ruby_strtod): try to reduce errors using powersOf10
table.  [ruby-dev:28644]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-16 23:24:08 +00:00
matz
c606447c00 * re.c (rb_reg_initialize): should not allow modifying literal
regexps.  frozen check moved from rb_reg_initialize_m as well.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-16 06:38:18 +00:00
eban
34e8a8623f * 2006-05-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-16 01:37:40 +00:00
matz
d58d7f4105 * dir.c (dir_close): should not close untainted dir stream.
* dir.c (GetDIR): add tainted/frozen check for each dir operation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-16 00:43:41 +00:00
matz
1b3beecb54 * re.c (rb_reg_initialize): should not modify untainted objects in
safe levels higher than 3.

* re.c (rb_memcmp): type change from char* to const void*.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-16 00:25:18 +00:00