summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * process.c (rb_fork): propagete an error message from child to parent.akr2008-12-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_f_exec): show details of error in child process on exception. (save_redirect_fd): add error message arguments. (run_exec_dup2): ditto. (run_exec_close): ditto. (run_exec_open): ditto. (run_exec_dup2_child): ditto. (run_exec_pgroup): ditto. (run_exec_rlimit): ditto. (rb_run_exec_options): ditto. (rb_exec): ditto. (rb_exec_atfork): ditto. (rb_spawn_internal): ditto. (rb_spawn): ditto. (rb_f_system): follow arguments change. (proc_daemon): ditto. (rb_f_spawn): show details of error in child process on exception. * io.c (popen_exec): add error message arguments. (pipe_open): show details of error in child process on exception. * include/ruby/intern.h (rb_run_exec_options): add error message arguments. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * ext/pty/pty.c (chfunc): add error message arguments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: fix wrong flag value.nagai2008-12-221-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: temporary patch for trouble on TkAqua (> Tk8.4.9).nagai2008-12-212-35/+48
| | | | | | | | * ext/tk/sample/demos-jp/widget: set encoding to a demo-code string to avoid garbled text on the Code Window. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-181-3/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-171-9/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (unix_recv_io): relax msg_controllen errorakr2008-12-171-2/+7
| | | | | | | | check. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/extconf.rb: check util.h for OpenBSD.akr2008-12-172-1/+20
| | | | | | | | * ext/pty/pty.c: include util.h if available. fix variable name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpToString): reverted modificationmatz2008-12-161-7/+13
| | | | | | | | | (that caused a bug) in r20359. [ruby-dev:37370] * ext/bigdecimal/bigdecimal.c (BigDecimal_limit): comment update. [ruby-dev:37465] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (getDevice): add nomesg argument.akr2008-12-161-67/+81
| | | | | | | | | | | (get_device_once): add nomesg argument. chmod slave tty to 0600 if nomesg. more error tests. (no_mesg): new function. (pty_open): make slave tty's mode 0600. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/extconf.rb: check posix_openpt.akr2008-12-162-6/+43
| | | | | | | | * ext/pty/pty.c (get_device_once): use posix_openpt if available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_open): set FMODE_SYNC and FMODE_DUPLEX.akr2008-12-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_open): new method PTY.open.akr2008-12-151-0/+62
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (get_device_once): use DEVICELEN instead ofakr2008-12-151-3/+3
| | | | | | | | sizeof SlaveName. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (chfunc): make it static.akr2008-12-151-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (child_info): add slavename.akr2008-12-151-1/+3
| | | | | | | | (chfunc): use slavename. (establishShell): set slavename. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (forked_child): new variable.akr2008-12-131-60/+82
| | | | | | | | | | | | | | | | (before_exec): don't call rb_thread_stop_timer_thread if forked_child. (after_exec): reset forked_child after rb_thread_start_timer_thread. (rb_fork): set forked_child just after fork in child. * ext/pty/pty.c (chfunc): extracted from establishShell. (establishShell): use rb_fork. [ruby-dev:37418] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_canonicalization): renamed.tadf2008-12-122-4/+4
| | | | | | | | | | | | | | * ext/math/complex.c: followed the above change. * rational.c (nurat_canonicalization): renamed. * ext/math/rational.c: followed the above change. * configure.in: defines a new macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.ckouji2008-12-121-4/+3
| | | | | | | | (readline_s_get_completion_append_character): uses locale encoding but not ASCII-8BIT. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: r20662 reverted.kouji2008-12-121-10/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_readline): changed the messagekouji2008-12-121-1/+1
| | | | | | | | of IOError to 'closed stdin' from 'stdin closed' if stdin was closed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: used the ExportStringValue macrokouji2008-12-121-15/+10
| | | | | | | | instead of the OutputStringValue macro. removed the OutputStringValue macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_round): should be roundmatz2008-12-101-2/+5
| | | | | | | | | to integer. [ruby-dev:37355] * ext/bigdecimal/bigdecimal.c (BigDecimal_divmod): division should be integer. [incompatible] [ruby-dev:37355] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: removed trailing spaces.nobu2008-12-091-31/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: made indentation consistent.nobu2008-12-091-189/+189
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_use_default_colors): add newmatz2008-12-092-1/+44
| | | | | | | | | | | method. a patch from Giancarlo F Bellido <support at coaxialhost.com> in [ruby-core:20434]. * ext/curses/curses.c (curses_tabsize_set): ditto. * ext/curses/curses.c (curses_tabsize_get): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_truncate): returnmatz2008-12-081-0/+9
| | | | | | | | | | integer if no optional argument given. [incompatible] * ext/bigdecimal/bigdecimal.c (BigDecimal_floor): ditto. * ext/bigdecimal/bigdecimal.c (BigDecimal_ceil): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_read_nonblock):matz2008-12-041-6/+78
| | | | | | | OpenSSL::SSL::SSLSocket should implement read_nonblock. a patch from Aaron Patterson in [ruby-core:20277]. fix: #814 [ruby-core:20241] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]matz2008-12-041-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (window_getch): avoid ISPRINT() macro whichmatz2008-12-041-1/+1
| | | | | | | | has an issue with OpenSolaris. [ruby-core:20189] * signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/menu.rb: TkOptionMenubutton.new fails to treat nagai2008-12-031-2/+2
| | | | | | | 'parent' and 'variable' options on a Hash argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: bug fix. use ::RubyVM instead of ::VM [ruby-list:45676]nagai2008-12-032-3/+3
| | | | | | | * ext/tk/tcltklib.c: update RELEASE_DATE git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c (ip_ruby_cmd, ip_invoke_with_position): mustnobu2008-12-031-11/+9
| | | | | | | not access internal union directly. [ruby-list:45670] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getc, rb_io_readchar): documentation correction fromnobu2008-12-031-1/+1
| | | | | | | | | Emiel van de Laar. [ruby-core:20212] * ext/stringio/stringio.c (strio_ungetbyte): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (Init_pty): fix typo.mame2008-12-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_getaddrinfo): should have updated formatz2008-11-291-1/+1
| | | | | | Mac OS X. a patch from Shumpei Akai in [ruby-dev:37234] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_s_getaddrinfo): refactored to removematz2008-11-281-37/+18
| | | | | | code duplication regarding getaddrinfo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimalmatz2008-11-271-4/+3
| | | | | | | division (including modulo) should raise ZeroDivisionError as integer division. [incompatible] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should returnmatz2008-11-271-1/+4
| | | | | | | | | Integer for #div operation. * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should raise ZeroDivisionError if divisor is zero. [ruby-dev:37207] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zeromatz2008-11-262-8/+7
| | | | | | | | | | division should raise FloatDomainError if mode VP_EXCEPTION_ZERODIVIDE is set. [ruby-dev:37204] * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should handle VP_EXCEPTION_ZERODIVIDE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.kazu2008-11-261-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exceptionmatz2008-11-251-12/+15
| | | | | | | | for nan/inf conversion. [ruby-dev:37187] fix #793 * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoidmatz2008-11-251-42/+54
| | | | | | | | | | | | | | segmentation fault caused by (insanely) long decimal values. [ruby-dev:37189] fix #794 * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i, BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split, BigDecimal_inspect): ditto. * ext/bigdecimal/bigdecimal.c (VpToString): small performance improvement. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/blt/tabset.rb, ext/tk/lib/tkextlib/blt/tabnotebook.rb: nagai2008-11-244-18/+183
| | | | | | | | fix many bugs. Now, those work properly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/version.rb, ext/tk/ChangeLog.tkextlib: update.nagai2008-11-222-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb: nagai2008-11-222-8/+8
| | | | | | | fix NameError bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (get_device_once): abandon asynchronous exceptionmatz2008-11-211-71/+46
| | | | | | | | | | | that might cause serious problem if a program terminated early. asynchronous exception is a very bad thing anyway. use Process.waitpid(pid) or PTY.check(pid) to poll program termination. if PTY.check is called with optional second argument being true, it raises an exception same as one from previous behavior. [incompatible] fix: [ruby-core:19583] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. amatz2008-11-212-0/+25
| | | | | | | patch from Giancarlo F Bellido <support@coaxialhost.com> in [ruby-core:19961]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a valuematz2008-11-191-3/+34
| | | | | | out of range of Time. [ruby-core:19919] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): moved frommatz2008-11-112-12/+36
| | | | | | bigdecimal/util, converted into C. [ruby-dev:36805] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_ungetc): ungetc position shouldmatz2008-11-081-1/+1
| | | | | | not be changed from 1.8. [ruby-core:19632] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e