private final LibC libc;
private final int fd;
private volatile boolean isOpen = true;
private static LibC libc(Ruby runtime) {
LibC libc = runtime.getPosix().libc();
if (libc == null) {
throw runtime.newNotImplementedError("native access not enabled");
}
return libc;
}