public static Map<Long, String> loadSyscallNumberMap(String dataFileName) throws IOException {
		ResourceFile mapFile = Application.findDataFileInAnyModule(dataFileName);
		if (mapFile == null) {
			throw new FileNotFoundException("Cannot find syscall number map: " + dataFileName);
		}
		Map<Long, String> result = new HashMap<>();

		final BufferedReader reader =
			new BufferedReader(new InputStreamReader(mapFile.getInputStream()));
		String line;
		while (null != (line = reader.readLine())) {
			line = line.strip();
			if (line.startsWith("#")) {
				continue;
			}
			String[] parts = line.split("\\s+");
			if (parts.length != 2) {
				throw new IOException(
					"Badly formatted syscall number map: " + dataFileName + ". Line: " + line);
			}
			try {
				result.put(Long.parseLong(parts[0]), parts[1]);
			}
			catch (NumberFormatException e) {
				throw new IOException("Badly formatted syscall number map: " + dataFileName, e);
			}
		}
		return result;
	}
Derive a syscall number to name map from the specification in a given file.

@param dataFileName the file name to be found in a modules data directory
@return the map
@throws IOException if the file could not be read
Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/emu/sys/EmuSyscallLibrary.java