// if (setvbuf(fptr.stdio_file, NULL, _IOLBF, BUFSIZ) != 0)
// rb_warn("setvbuf() can't be honoured for %"PRIsVALUE, fptr.pathv);
// }
} else {
ChannelFD tmpfd = sysopen(runtime, fptr.getPath(), oflags_p[0], 0666);
Errno err = null;
if (fptr.cloexecDup2(fptr.posix, tmpfd, fptr.fd()) < 0)
err = fptr.errno();
if (err != null) {
throw runtime.newErrnoFromErrno(err, fptr.getPath());