else perm = RubyNumeric.num2int(vperm);
StringSupport.checkStringSafety(context.runtime, fname);
fname = ((RubyString)fname).dupFrozen();
fd = sysopen(runtime, fname.toString(), oflags, perm);
return runtime.newFixnum(fd.bestFileno());
}
private static class Sysopen {
String fname;
int oflags;