1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
akr c4049f4cb6 * io.c (rb_mWaitReadable): defined.
(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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-19 11:40:38 +00:00
..
backward * include/ruby/backward/rubysig.h (rb_thread_blocking_region_begin), 2009-02-08 13:44:21 +00:00
defines.h * configure.in (--with-arch): added new option to support 2009-02-07 09:02:50 +00:00
encoding.h * include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int. 2009-03-15 02:15:19 +00:00
intern.h * string.c (rb_hash_uint, rb_hash_start, rb_hash_end): use VALUE 2009-03-15 02:11:45 +00:00
io.h * include/ruby/io.h (typedef struct rb_io_t): 2009-01-21 04:56:06 +00:00
missing.h * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++. 2009-01-02 14:35:07 +00:00
oniguruma.h * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
re.h * include/ruby/re.h (struct rmatch_offset): new struct for character 2008-02-16 20:08:35 +00:00
regex.h * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
ruby.h * io.c (rb_mWaitReadable): defined. 2009-03-19 11:40:38 +00:00
st.h * include/ruby/st.h, st.c: order entries by a linked list instead of 2009-02-08 14:34:13 +00:00
util.h * util.c (ruby_scan_oct, ruby_scan_hex): use size_t. 2009-03-14 09:25:20 +00:00
vm.h * include/ruby/vm.h: write a comment. 2008-10-21 20:59:23 +00:00
win32.h * include/ruby/win32.h (strcasecmp, strncasecmp): use _ prefixed 2009-03-10 10:58:49 +00:00