From 21ba5836e62f142c39697fc0cf6775448615e1cc Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 19 Aug 2008 12:51:52 +0000 Subject: * include/ruby/io.h (rb_fopen): declaration removed. * io.c (rb_fopen): unused function removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 57e1c22bc0..c7df715853 100644 --- a/io.c +++ b/io.c @@ -3783,31 +3783,6 @@ rb_sysopen(char *fname, int flags, unsigned int mode) return fd; } -FILE * -rb_fopen(const char *fname, const char *mode) -{ - FILE *file; - - file = fopen(fname, mode); - if (!file) { - if (errno == EMFILE || errno == ENFILE) { - rb_gc(); - file = fopen(fname, mode); - } - if (!file) { - rb_sys_fail(fname); - } - } -#ifdef USE_SETVBUF - if (setvbuf(file, NULL, _IOFBF, 0) != 0) - rb_warn("setvbuf() can't be honoured for %s", fname); -#endif -#ifdef __human68k__ - setmode(fileno(file), O_TEXT); -#endif - return file; -} - FILE * rb_fdopen(int fd, const char *mode) { -- cgit v1.2.3