1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
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
..
cgi * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
date * lib/date/format.rb (_parse): m17n compliant. 2008-12-16 11:25:13 +00:00
drb * lib/drb/drb.rb (open_server_inaddr_any): fixed multiple network 2009-03-17 17:43:48 +00:00
irb * lib/**/*.rb: removed unnecessary shbang lines. 2009-03-06 04:23:05 +00:00
minitest Imported minitest 1.3.1 r4532. 2009-01-20 23:26:55 +00:00
net * io.c (rb_mWaitReadable): defined. 2009-03-19 11:40:38 +00:00
optparse * lib/optparse/version.rb: remove variable shadowing to stop 2008-12-18 07:54:50 +00:00
racc * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
rake * lib/rake: updated to rake code to rake-0.8.4 source code base. 2009-03-09 07:49:14 +00:00
rbconfig * lib/**/*.rb: removed unnecessary shbang lines. 2009-03-06 04:23:05 +00:00
rdoc * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
rexml * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
rinda * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
rss * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
rubygems * lib/rubygems/installer.rb (Gem::Installer#shebang): fix for env 2009-03-15 03:01:39 +00:00
shell * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
uri * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
webrick * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
xmlrpc * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
yaml * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
.document * lib/mathn.rb (Integer): moved into prime.rb. 2008-09-03 13:57:21 +00:00
abbrev.rb
base64.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
benchmark.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
cgi.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
cmath.rb do not pass -infinity. 2008-12-11 15:11:14 +00:00
complex.rb * lib/complex.rb: provides some obsolate methods. 2008-09-20 22:55:59 +00:00
csv.rb * lib/**/*.rb: removed unnecessary shbang lines. 2009-03-06 04:23:05 +00:00
date.rb * lib/date.rb (inspect): changed again. 2008-11-24 10:55:00 +00:00
debug.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
delegate.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
drb.rb
e2mmap.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
English.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
erb.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
fileutils.rb * lib/fileutils.rb (FileUtils#fu_get_gid): stringify group 2009-03-13 22:42:16 +00:00
find.rb * lib/find.rb (Find#find): Return an enumerator if no block is 2008-06-10 18:41:25 +00:00
forwardable.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
getoptlong.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
gserver.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
ipaddr.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
irb.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
logger.rb * lib/logger.rb (Logger): should handle the case that cvs/svn do 2008-11-19 22:35:40 +00:00
mathn.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
matrix.rb * lib/**/*.rb: removed unnecessary shbang lines. 2009-03-06 04:23:05 +00:00
mkmf.rb * configure.in (RUBY_CHECK_SIZEOF): allows qualified name. 2009-03-19 09:49:51 +00:00
monitor.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
mutex_m.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
observer.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
open-uri.rb * lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection. 2009-01-07 22:33:00 +00:00
open3.rb * lib/open3.rb (Open3.pipeline_start): return an array of threads if a 2008-12-10 17:24:42 +00:00
optparse.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
ostruct.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
pathname.rb * lib/pathname.rb (Pathname#sub): set $~ in block.binding. 2009-03-17 05:26:15 +00:00
pp.rb * test/test_pp.rb: extract from lib/pp.rb. 2009-02-14 23:36:45 +00:00
prettyprint.rb * test/test_pp.rb: extract from lib/pp.rb. 2009-02-14 23:36:45 +00:00
prime.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
profile.rb * lib/debug.rb, lib/profile.rb: fix to use RubyVM. 2008-07-08 13:28:57 +00:00
profiler.rb * lib/profiler.rb (Profiler__#print_profile): sort in the descending 2008-07-09 02:13:41 +00:00
pstore.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
rake.rb * lib/rake: updated to rake code to rake-0.8.4 source code base. 2009-03-09 07:49:14 +00:00
rational.rb * lib/rational.rb: resolved conflicts of aliases. 2008-10-05 12:30:54 +00:00
rdoc.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
README * lib/mathn.rb (Integer): moved into prime.rb. 2008-09-03 13:57:21 +00:00
resolv-replace.rb * lib/resolv.rb: randomize source port and transaction id. 2008-08-08 01:58:40 +00:00
resolv.rb * lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded 2009-02-01 23:12:52 +00:00
rss.rb
rubygems.rb * lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not create 2009-01-04 08:07:22 +00:00
scanf.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
securerandom.rb * lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional 2009-03-06 14:36:33 +00:00
set.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
shell.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
shellwords.rb
singleton.rb * lib/singleton.rb: fix documentation. [ruby-core:21038] 2009-01-02 14:28:02 +00:00
sync.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
tempfile.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
thread.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
thwait.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
time.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
timeout.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
tmpdir.rb * lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignores 2009-03-05 07:56:19 +00:00
tracer.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
tsort.rb * lib/**/*.rb: removed unnecessary shbang lines. 2009-03-06 04:23:05 +00:00
ubygems.rb
un.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
uri.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
weakref.rb
webrick.rb
yaml.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00

English.rb	lets Perl'ish global variables have English names
README		this file
benchmark.rb	a benchmark utility
cgi.rb		CGI support library
cgi/session.rb	CGI session class
complex.rb	complex number support
csv.rb		CSV parser/generator
date.rb		date object
date/format.rb	date parsing and formatting
debug.rb	ruby debugger
delegate.rb	delegates messages to other object
drb.rb		distributed Ruby
e2mmap.rb	exception utilities
erb.rb		tiny eRuby library
fileutils.rb	file utilities
finalize.rb	adds finalizer to the object
find.rb		traverses directory tree
forwardable.rb	explicit delegation library
getoptlong.rb	GNU getoptlong compatible
gserver.rb	general TCP server
ipaddr.rb	defines the IPAddr class
irb.rb		interactive ruby
logger.rb	simple logging utility
mathn.rb	extended math operation
matrix.rb	matrix calculation library
mkmf.rb		Makefile maker
monitor.rb	exclusive region monitor for thread
mutex_m.rb	mutex mixin
net/ftp.rb	ftp access
net/http.rb	HTTP access
net/imap.rb	IMAP4 access
net/pop.rb	POP3 access
net/protocol.rb	abstract class for net library (DO NOT USE)
net/smtp.rb	SMTP access
net/telnet.rb	telnet library
observer.rb	observer desing pattern library (provides Observable)
open-uri.rb	easy-to-use network interface using URI and Net
open3.rb	opens subprocess connection stdin/stdout/stderr
optparse.rb	command line option analysis
ostruct.rb	python style object
parsedate.rb	parses date string (obsolete)
pathname.rb	Object-Oriented Pathname Class
pp.rb		pretty print objects
prettyprint.rb	pretty printing algorithm
prime.rb        prime numbers and factorization
profile.rb	runs ruby profiler
profiler.rb	ruby profiler module
pstore.rb	persistent object strage using marshal
racc/parser.rb	racc (Ruby yACC) runtime
rational.rb	rational number support
rdoc	source-code documentation tool
resolv-replace.rb	replace Socket DNS by resolve.rb
resolv.rb	DNS resolver in Ruby
rexml		an XML parser for Ruby, in Ruby
scanf.rb	scanf for Ruby
set.rb		defines the Set class
shell.rb	runs commands and does pipeline operations like shell
shellwords.rb	split into words like shell
singleton.rb	singleton design pattern library
sync.rb		2 phase lock
tempfile.rb	temporary file with automatic removal
test/unit	Ruby Unit Testing Framework
thread.rb	thread support
thwait.rb	thread syncronization class
time.rb		RFC2822, RFC2616, ISO8601 style time formatting/parsing
timeout.rb	provides timeout
tmpdir.rb	retrieve temporary directory path
tracer.rb	execution tracer
tsort.rb	topological sorting
un.rb		Utilities to replace common UNIX commands in Makefiles etc
uri.rb		URI support
uri/ftp.rb	ftp scheme support
uri/http.rb	http scheme support
uri/https.rb	https scheme support
uri/ldap.rb	ldap scheme support
uri/mailto.rb	mailto scheme support
weakref.rb	weak reference class
webrick.rb	WEB server toolkit
xmlrpc		XML-RPC implementation
yaml.rb		YAML implementation