aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-19 12:51:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-19 12:51:52 +0000
commit21ba5836e62f142c39697fc0cf6775448615e1cc (patch)
treeb69e63df1175b367048af13d1691192508f5a734 /io.c
parent074ad688b1b96d435e8c41dd16b470f3e28b28bf (diff)
downloadruby-21ba5836e62f142c39697fc0cf6775448615e1cc.tar.gz
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/io.c b/io.c
index 57e1c22bc0..c7df715853 100644
--- a/io.c
+++ b/io.c
@@ -3784,31 +3784,6 @@ rb_sysopen(char *fname, int flags, unsigned int mode)
}
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)
{
FILE *file;