summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/readline/readline.c: use rb_f_notimplement for methods notakr2009-04-1811-205/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | implemented. * ext/openssl/ossl_engine.c: ditto. * ext/openssl/ossl_config.c: ditto. * ext/openssl/ossl_cipher.c: ditto. * ext/openssl/ossl_pkcs5.c: ditto. * ext/openssl/ossl_x509ext.c: ditto. * ext/socket/socket.c: ditto. * ext/socket/basicsocket.c: ditto. * ext/socket/ancdata.c: ditto. * ext/socket/unixsocket.c: ditto. * ext/iconv/iconv.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: use rb_f_notimplement for methods notakr2009-04-181-47/+47
| | | | | | | implemented. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_path): removed. [ruby-dev:38254]nobu2009-04-061-7/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: quotes arguments with spaces always.nobu2009-04-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well formatz2009-03-261-0/+1
| | | | | | | prototypes of compatibility functions on Win32 platform. [ruby-core:22870] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_initialize): Make the file variableknu2009-03-232-2/+4
| | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@23057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-211-0/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (write_would_block): defined.akr2009-03-211-23/+53
| | | | | | | | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@23029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl: updated svn:ignore.nobu2009-03-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rbakr2009-03-202-6/+75
| | | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@23020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc and NEWS.akr2009-03-192-0/+62
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_mWaitReadable): defined.akr2009-03-1910-26/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c: not use pktinfo.ipi_spec_dst if not definedtakano322009-03-182-4/+7
| | | | | | | * ext/socket/extconf.rb: define HAVE_IPI_SPEC_DST git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): added RUBY_COREDLL.nobu2009-03-172-1/+36
| | | | | | | | * ext/dl/handle.c (rb_dlhandle_initialize): returns msvcrt if libc or RUBY_COREDLL is given. [ruby-core:22828] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl: made indent style insistent.nobu2009-03-173-160/+160
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),nobu2009-03-161-4/+4
| | | | | | | (lib_watchdog_core): tv_usec is not time_t. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (srcs-ext): creates ext/dl/callback/callback.c also.nobu2009-03-141-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/init.c (wait_connectable0): remove unreachable code.akr2009-03-131-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/openssl_missing.h (i2d_of_void): cast for callbacks.nobu2009-03-135-12/+15
| | | | | | | | | | | | | | | | | [ruby-core:22860] * ext/openssl/ossl_engine.c (ossl_engine_s_by_id): suppress a warning. * ext/openssl/ossl_ssl.c (ossl_sslctx_flush_sessions): time_t may be larger than long. * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_get_time), (ossl_ssl_session_get_timeout): use TIMET2NUM() to convert time_t. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): should usenobu2009-03-131-3/+3
| | | | | | | | OPENSSL_free instead of free. a patch from Charlie Savage at [ruby-core:22858]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (AC_HEADER_DIRENT): added.nobu2009-03-131-3/+3
| | | | | | | | | | | | * include/ruby/ruby.h (NUM2INT, rb_special_const_p): returns true and false instead of Qtrue and Qfalse for platforms where VALUE is bigger than int. * gc.c (gc_stress_set), ext/openssl/ossl_asn1.c (decode_bool): got rid of variables named `bool'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl: suppress warnings.akr2009-03-127-54/+54
| | | | | | | | | * ext/openssl/ossl.h (OSSL_Debug): don't use gcc extention for variadic macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM becauseakr2009-03-121-1/+1
| | | | | | | OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbolnobu2009-03-111-11/+1
| | | | | | | name. [ruby-dev:38150] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/win32/lib/Win32API.rb: call by :stdcall as default.usa2009-03-111-2/+2
| | | | | | | | [ruby-core:22826] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.nobu2009-03-111-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption.nobu2009-03-111-9/+9
| | | | | | | [ruby-core:22822] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppressnobu2009-03-101-1/+1
| | | | | | | warnings. [ruby-core:22792] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/callback/depend: fix for parallel build.nobu2009-03-093-23/+23
| | | | | | | | | * ext/dl/callback/extconf.rb: callback.h is no longer created. * ext/dl/callback/mkcallback.rb: creates main source first. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.nobu2009-03-091-7/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (Init_dl): protoized.nobu2009-03-094-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb: moved.nobu2009-03-061-164/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-06433-9228/+9228
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-03-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): removes object files no longer used andnobu2009-03-031-1/+4
| | | | | | | files to be removed by old distclean. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.usa2009-03-032-3/+5
| | | | | | | | * ext/dl/lib/dl/func.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs andnobu2009-03-031-5/+4
| | | | | | | $srcs are always Array or nil now. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/win32/lib/win32/{registry,resolv}.rb: use dl/import insteadusa2009-03-032-18/+34
| | | | | | | | of Win32API. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.usa2009-03-031-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.nobu2009-03-036-35/+63
| | | | | | | * ext/dl/callback: split from dl. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): initialize $objs before extrace_makefile.nobu2009-03-031-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/cparser.rb (DL::CParser::parse_signature): fixednobu2009-03-031-1/+1
| | | | | | | variable name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/pack.rb (DL::PackInfo): reduced redundantnobu2009-03-032-88/+13
| | | | | | | | | initialization. * ext/dl/lib/dl/stack.rb (DL::Stack): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.nobu2009-03-031-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl: moved from ext/dl/test.nobu2009-03-036-461/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): removes object files no longer used.nobu2009-03-031-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (main): passes $(MAKE) to mkmain_cmdnobu2009-03-031-3/+3
| | | | | | | * ext/extmk.rb (command_output): uses arguments to invoke make. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/sockport.h (SS_LEN): defined unconditionally.akr2009-03-021-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (anc_inspect_socket_creds): supress warnings.akr2009-03-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e