aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-23 22:50:53 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-23 22:50:53 +0000
commit81b0f14cee7866e4ff398f8a274a1f3734fb98c0 (patch)
tree852db959a59e6a0901a691f7560a58ed25386c7b /io.c
parentd69010ae12b64c2e7db5fb875cd43f9d652f7739 (diff)
downloadruby-81b0f14cee7866e4ff398f8a274a1f3734fb98c0.tar.gz
use rb_gc_for_fd for more callers
* dir.c (dir_initialize): use rb_gc_for_fd for ENOMEM * ext/socket/init.c (rsock_socket): ditto * ext/socket/socket.c (rsock_socketpair): ditto * internal.h (rb_gc_for_fd): prototype * io.c (rb_gc_for_fd): remove static [ruby-core:71623] [Feature #11727] Manpages for opendir(2), socket(2), and socketpair(3posix) describe ENOMEM as a possible error for each of these; handle it consistently with our existing wrappers for open(2)/pipe(2) etc... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index e5a7b6a260..8ebc80b218 100644
--- a/io.c
+++ b/io.c
@@ -884,7 +884,7 @@ rb_io_read_check(rb_io_t *fptr)
return;
}
-static int
+int
rb_gc_for_fd(int err)
{
if (err == EMFILE || err == ENFILE || err == ENOMEM) {