summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-02-22 03:06:03 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-02-22 03:06:03 +0000
commit32e4572f5dd85f69111ccebb1f6069137e1c660c (patch)
tree6a8e26a754111c767fc448f118830437b4bb76a9 /vm
parentefe66a0e796306f46f1f863aec10fcfae07ff467 (diff)
downloadclasspath-32e4572f5dd85f69111ccebb1f6069137e1c660c.tar.gz
2008-02-22 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR classpath/33751: * configure.ac: Don't check for readdir_r. * native/jni/native-lib/cpio.c: (cpio_readDir): Remove use of readdir_r, zero errno before starting and always leave a \0 at the end after strncpy. * vm/reference/java/io/VMFile.java: (list(String)): Make synchronized.
Diffstat (limited to 'vm')
-rw-r--r--vm/reference/java/io/VMFile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/reference/java/io/VMFile.java b/vm/reference/java/io/VMFile.java
index 4e997b2fb..2a2751765 100644
--- a/vm/reference/java/io/VMFile.java
+++ b/vm/reference/java/io/VMFile.java
@@ -80,10 +80,10 @@ final class VMFile
static native boolean create(String path) throws IOException;
/*
- * This native function actually produces the list of file in this
+ * This native function actually produces the list of files in this
* directory
*/
- static native String[] list(String dirpath);
+ static native synchronized String[] list(String dirpath);
/*
* This native method actually performs the rename.