public void checkReadable() {
		if (!OpenFlag.isRead(flags)) {
			throw new EmuIOException("File not opened for reading");
		}
	}
Check if the file is readable, throwing {@link EmuIOException} if not
Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/unix/DefaultEmuUnixFileHandle.java