Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A patch for vax_interpreter
diff -ur vax_interpreter.orig/FileItem.java vax_interpreter/FileItem.java
--- vax_interpreter/FileItem.java 2016-01-10 15:41:00.658583200 +0900
+++ /d/vsprojs/vaxrun/src/vax_interpreter/FileItem.java 2016-02-11 13:21:43.405655200 +0900
@@ -113,7 +113,7 @@
// If file mode is read-only, it will be failed.
if (isCreatedNewFile) {
if (!Kernel.Sysent.setFileMode(file, fmode)) {
- throw new RuntimeException();
+ //throw new RuntimeException();
}
}
return fItem;
diff -ur vax_interpreter.orig/Kernel.java vax_interpreter/Kernel.java
--- vax_interpreter/Kernel.java 2016-01-10 15:41:00.665595900 +0900
+++ /d/vsprojs/vaxrun/src/vax_interpreter/Kernel.java 2016-02-11 13:21:43.419681000 +0900
@@ -18,7 +18,7 @@
static String rootPath;
static {
String classPath = Thread.currentThread().getContextClassLoader().getResource("").getPath();
- rootPath = Paths.get(classPath, "root").toString();
+ rootPath = new File(classPath, "root").getPath();
}
public static void syscall(int code, Context context) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.