aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io.c b/io.c
index 4c8f41a924..ced821a6b5 100644
--- a/io.c
+++ b/io.c
@@ -4051,6 +4051,12 @@ rb_file_open_internal(VALUE io, VALUE filename, const char *mode)
}
VALUE
+rb_file_open_str(VALUE fname, const char *mode)
+{
+ return rb_file_open_internal(io_alloc(rb_cFile), fname, mode);
+}
+
+VALUE
rb_file_open(const char *fname, const char *mode)
{
return rb_file_open_internal(io_alloc(rb_cFile), rb_str_new_cstr(fname), mode);