summaryrefslogtreecommitdiffstats
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
commitc45c1ec209cd07eef351f20dc18a184834677a73 (patch)
treeb69e63df1175b367048af13d1691192508f5a734 /io.c
parent894850d6d48ae31179541aee611112a17e5dc9a9 (diff)
downloadruby-c45c1ec209cd07eef351f20dc18a184834677a73.tar.gz
ruby-c45c1ec209cd07eef351f20dc18a184834677a73.tar.xz
ruby-c45c1ec209cd07eef351f20dc18a184834677a73.zip
* include/ruby/io.h (rb_fopen): declaration removed.
* io.c (rb_fopen): unused function removed. git-svn-id: http://svn.ruby-lang.org/repos/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 57e1c22bc..c7df71585 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;