akr
b317a4cd28
* io.c: use "__sun" instead of "sun" to detect SunOS.
...
* dln.c: ditto.
* cont.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
[ruby-dev:44693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-24 13:49:58 +00:00
akr
5153fd2a5e
* ext/pty/pty.c (get_device_once): delay rb_fd_set_cloexec() until
...
grantpt() on Solaris. grantpt() doesn't work with CLOEXEC on
Solaris 10.
reported by Naohisa GOTO. [ruby-dev:44688] [Bug #5475 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-24 13:40:13 +00:00
akr
be561cbebe
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-24 11:08:52 +00:00
naruse
9a82672ce2
Follow the error format changed by FreeBSD 9.
...
FreeBSD 8.2's last line is
"./configure: Can't open ./configure: No such file or directory\n""
but FreeBSD 9's is
"cannot open ./configure: No such file or directory\n"".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-24 06:41:57 +00:00
svn
530160d605
* 2011-10-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-23 23:19:21 +00:00
akr
a28fe36c89
* io.c (copy_stream_fallback_body): check nil for EOF of read method.
...
patch by Eric Wong. [ruby-core:39134] [Bug #5237 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-23 23:19:14 +00:00
ktsj
b062e60805
* ext/tk/MANUAL_tcltklib.eng: fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-23 09:22:59 +00:00
nobu
bb98e0ecec
* numeric.c (rb_infinity, rb_nan): aggregated member initializers
...
need braces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-23 09:03:33 +00:00
ngoto
d332891fdd
* ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-23 07:51:10 +00:00
ayumin
965dba4faa
* ext/tk/MANUAL_tcltklib.eng: fix typo. [ruby-dev:44683] [Bug #5471 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-23 07:39:56 +00:00
svn
fc024f1919
* 2011-10-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 23:03:13 +00:00
akr
e7ff29581b
* io.c (rb_fd_set_cloexec): set close-on-exec flag only if F_GETFD is
...
defined. reported by Luis Lavena. [ruby-core:40281] [Bug #5470 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 23:03:02 +00:00
akr
df8126f9e3
* test/openssl/test_ssl.rb (test_multibyte_read_write): start server
...
for each length to avoid race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 11:35:58 +00:00
akr
b574a4d4a1
* include/ruby/intern.h (rb_fd_set_cloexec): declared.
...
* io.c (rb_fd_set_cloexec): new function.
(ruby_dup): call rb_fd_set_cloexec to set close-on-exec flag.
(rb_sysopen_internal): ditto.
(rb_pipe): ditto.
(io_reopen): ditto.
(io_cntl): ditto.
* process.c (rb_f_exec): change the default :close_others option to
true.
(rb_f_system): ditto.
(move_fds_to_avoid_crash): call rb_fd_set_cloexec to set
close-on-exec flag.
(ruby_setsid): ditto.
(rb_daemon): ditto.
* thread_pthread.c (rb_thread_create_timer_thread): call
rb_fd_set_cloexec to set close-on-exec flag.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/openssl/ossl_bio.c (ossl_obj2bio): ditto.
* ext/socket/init.c (rsock_socket): ditto.
(rsock_s_accept_nonblock): ditto.
(rsock_s_accept): ditto.
* ext/socket/socket.c (rsock_sock_s_socketpair): ditto.
* ext/socket/ancdata.c (discard_cmsg): ditto.
(make_io_for_unix_rights): ditto.
* ext/socket/unixsocket.c (unix_recv_io): ditto.
* ext/io/console/console.c (console_dev): ditto.
[ruby-core:38140] [Feature #5041 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 09:58:15 +00:00
akr
00715f4c5a
describe Resolv::DNS#timeouts= and Resolv::DNS::Config#timeouts=.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 08:50:50 +00:00
akr
931226061b
* lib/resolv.rb: fix a exception name in previous patch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 08:47:13 +00:00
akr
16f4ecbc8c
* lib/resolv.rb: make timeout configurable for DNS query.
...
patch by Eric Wong. [ruby-core:38533] [Feature #5100 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 08:46:12 +00:00
svn
f600a558e0
* 2011-10-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-21 17:35:05 +00:00
ngoto
971769cd76
* numeric.c (rb_infinity, rb_nan): use union to prevent bus error
...
caused by misalignment. [Bug #5469 ] [ruby-dev:44657]
* include/ruby/missing.h (INFINITY, NAN): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-21 17:34:58 +00:00
nobu
cb2a69d883
* gc.c (initial_params): pack in a struct.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-21 13:02:19 +00:00
nobu
fd807aa2ea
* gc.c (rb_gc_set_params): set parameters always.
...
[ruby-dev:44648] [Bug #5467 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-21 13:01:37 +00:00
ngoto
b073b5347b
* atomic.h: change Solaris checking macro because atomic_ops can work
...
not only with Sun Studio but also with Fujitsu C Compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-21 03:26:11 +00:00
svn
9c223dd573
* 2011-10-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 17:22:14 +00:00
emboss
b878cfa971
* ext/openssl/ossl_ns_spki.c: Complete documentation.
...
* test/openssl/test_ns_spki.rb: Integrate SPKI#to_text.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 17:22:09 +00:00
usa
402c8cf9d1
* win32/win32.c (socklist_insert, socklist_lookup, socklist_delete):
...
new functions to wrap of st_insert(), st_lookup() and st_delete() to
socklist.
allocating socklist is deferred until it is really needed.
* win32/win32.c (exit_handler): delete socklist only if it is
initialized.
* win32/win32.c (rb_w32_sysinit, StartSockets): refactoring: move
initialization of select_mutex to StartSockets().
* win32/win32.c (exit_handler): refactoring: delete select_mutex only
if winsock is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 13:55:31 +00:00
emboss
98490d1f71
* ext/openssl/ossl_pkcs5.c: add note on timing attacks and general
...
documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 13:48:21 +00:00
ngoto
67db3f8177
* ChangeLog: forgot [Bug #5464 ] [ruby-dev:44632] for the previous commit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 12:35:23 +00:00
ngoto
a1d308456d
* vm_eval.c (check_funcall): set array elements one-by-one to fix
...
compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 12:30:13 +00:00
nobu
9c49753182
* include/ruby/defines.h (flush_register_windows): use software
...
trap on Debian Sparc 32-bit userspace. [Bug #5244 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 04:09:37 +00:00
nobu
4574aeb70d
* property.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 04:09:12 +00:00
emboss
359e7979d5
* test/openssl/test_pkcs5.rb: add RFC 6070 tests for PBKDF2 with
...
HMAC-SHA1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 03:32:36 +00:00
nobu
72cbec3f6d
* util.c (mmprepare): fix for fragmental size.
...
* util.c (mmswap_, mmrot3_): portability improvement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-20 02:42:26 +00:00
drbrain
2e32ad8163
* ext/openssl/ossl_ns_spki.c (Init_ossl_ns_spki): Stub documentation
...
for Netscape SPKI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 21:05:05 +00:00
ryan
9bec8ef50c
Imported minitest 2.6.2 (r6712)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 20:34:21 +00:00
svn
9cfc7a658f
* 2011-10-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 20:05:25 +00:00
emboss
65ca601ba6
* lib/openssl/buffering.rb: Force multi-byte strings to be treated as
...
binary data.
* test/openssl/test_ssl.rb: Add test for it.
Thanks to Niklas Baumstark for reporting the issue!
[Ruby 1.9 - Bug #5233 ] [ruby-core:39120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 20:05:21 +00:00
nagachika
1a2f635761
* ChangeLog: fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 11:20:41 +00:00
matz
6b8d4ab840
* version.h (RUBY_RELEASE_DATE): finally declare start of 2.0 work!
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 08:07:34 +00:00
drbrain
34fb36422d
* error.c (Init_Exception): Document $! and $@. Provide
...
recommendations for creating exceptions for a library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 02:52:38 +00:00
drbrain
62bd3dd4af
* error.c (Init_Exception): Add hierarchy of Exception subclasses.
...
Based on patch by Sylvain Daubert. [Ruby 1.9 - Bug #5438 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 02:32:39 +00:00
drbrain
2a4ce0757d
* enum.c: Reformat block args to a single standard, { |args| ... }.
...
Patch by b t. [Ruby 1.9 - Bug #5393 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 02:07:50 +00:00
drbrain
dc56a45996
Ignore extconf generated files
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 01:52:56 +00:00
svn
e4af86d631
* 2011-10-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 01:15:41 +00:00
emboss
c35204f7bd
* ext/openssl/ossl_ssl.c: Remove set, but unused variables.
...
ext/openssl/ossl_pkey.c: ditto
* ext/openssl/ossl_pkey_dh.c: Make functions passed to
rb_thread_blocking_region return VALUE instead of void.
ext/openssl/ossl_pkey_dsa.c: ditto
ext/openssl/ossl_pkey_rsa.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-19 01:15:35 +00:00
nobu
12c497dcf6
* hash.c (identhash): share with type_numhash.
...
* st.c (st_hashtype_num): rename from type_numhash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-18 14:28:58 +00:00
nobu
eb21db77c0
* vm_core.h (ruby_current_thread): probeprofiler has been removed
...
long ago.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-18 14:07:32 +00:00
nobu
560a6c6ffa
* ext/ripper/eventids2.c (ripper_init_eventids2): separate
...
initializations of IDs and objects.
* ext/ripper/tools/generate.rb (generate_eventids1): ditto.
* parse.y (Init_ripper, InitVM_ripper): fix inversed roles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-18 14:05:51 +00:00
svn
1a3f365c50
* 2011-10-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-17 17:34:01 +00:00
xibbar
673448c27d
Tue Oct 18 02:24:19 2011 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
...
* lib/cgi/core.rb (QueryExtension#read_multiparat): replace 'stdinput'
from '$stdin' because using fast cgi. [Bug #5451 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-17 17:33:57 +00:00
svn
4db3466357
* 2011-10-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-16 10:47:25 +00:00