rb_freopen 6713 io.c int rb_freopen(VALUE fname, const char *mode, FILE *fp); rb_freopen 6797 io.c int e = rb_freopen(rb_str_encode_ospath(fptr->pathv),