CVSROOT:/cvsroot/classpath
Module name:classpath
Changes by: Gary Benson gbenson 06/06/07 15:09:41
Modified files:
. : ChangeLog configure.ac NEWS
native/jni/java-io: java_io_VMFile.c
include: java_io_VMFile.h
vm/reference/java/io: VMFile.java
gnu/java/io: PlatformHelper.java
java/io: File.java
Log message:
2006-06-07 Gary Benson [EMAIL PROTECTED]
PR 24895
* native/jni/java-io/java_io_VMFile.c
(Java_java_io_VMFile_toCanonicalForm): New method.
* configure.ac: Added checks for lstat and readlink.
* include/java_io_VMFile.h: Added new method.
* vm/reference/java/io/VMFile.java: Use new method.
* gnu/java/io/PlatformHelper.java (toCanonicalForm): Removed.
* NEWS: Documented the above.
* java/io/File.java: Javadoc fix.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.7697r2=1.7698
http://cvs.savannah.gnu.org/viewcvs/classpath/configure.ac?cvsroot=classpathr1=1.159r2=1.160
http://cvs.savannah.gnu.org/viewcvs/classpath/NEWS?cvsroot=classpathr1=1.147r2=1.148
http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/java-io/java_io_VMFile.c?cvsroot=classpathr1=1.10r2=1.11
http://cvs.savannah.gnu.org/viewcvs/classpath/include/java_io_VMFile.h?cvsroot=classpathr1=1.3r2=1.4
http://cvs.savannah.gnu.org/viewcvs/classpath/vm/reference/java/io/VMFile.java?cvsroot=classpathr1=1.7r2=1.8
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/io/PlatformHelper.java?cvsroot=classpathr1=1.6r2=1.7
http://cvs.savannah.gnu.org/viewcvs/classpath/java/io/File.java?cvsroot=classpathr1=1.61r2=1.62
Patches:
Index: ChangeLog
===
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.7697
retrieving revision 1.7698
diff -u -b -r1.7697 -r1.7698
--- ChangeLog 7 Jun 2006 14:46:49 - 1.7697
+++ ChangeLog 7 Jun 2006 15:09:38 - 1.7698
@@ -1,3 +1,15 @@
+2006-06-07 Gary Benson [EMAIL PROTECTED]
+
+ PR 24895
+ * native/jni/java-io/java_io_VMFile.c
+ (Java_java_io_VMFile_toCanonicalForm): New method.
+ * configure.ac: Added checks for lstat and readlink.
+ * include/java_io_VMFile.h: Added new method.
+ * vm/reference/java/io/VMFile.java: Use new method.
+ * gnu/java/io/PlatformHelper.java (toCanonicalForm): Removed.
+ * NEWS: Documented the above.
+ * java/io/File.java: Javadoc fix.
+
2006-06-06 Roman Kennke [EMAIL PROTECTED]
PR 27920
Index: configure.ac
===
RCS file: /cvsroot/classpath/classpath/configure.ac,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -b -r1.159 -r1.160
--- configure.ac6 Jun 2006 10:19:48 - 1.159
+++ configure.ac7 Jun 2006 15:09:39 - 1.160
@@ -321,6 +321,7 @@
strerror_r \
fcntl \
mmap munmap mincore msync madvise getpagesize sysconf \
+ lstat readlink \
])
LIBMAGIC=
Index: NEWS
===
RCS file: /cvsroot/classpath/classpath/NEWS,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -b -r1.147 -r1.148
--- NEWS5 Jun 2006 18:37:59 - 1.147
+++ NEWS7 Jun 2006 15:09:40 - 1.148
@@ -27,6 +27,9 @@
URLConnection.guessContentTypeFromStream. The reference
implementation uses libmagic (and falls back to doing nothing if
libmagic is not available).
+* The method gnu.java.io.PlatformHelper.toCanonicalForm() has been
+ replaced with a JNI implementation of VMFile.toCanonicalForm() for
+ GNU/Posix systems.
New in release 0.91 (May 15, 2006)
Index: native/jni/java-io/java_io_VMFile.c
===
RCS file: /cvsroot/classpath/classpath/native/jni/java-io/java_io_VMFile.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- native/jni/java-io/java_io_VMFile.c 25 Jan 2006 10:40:12 - 1.10
+++ native/jni/java-io/java_io_VMFile.c 7 Jun 2006 15:09:40 - 1.11
@@ -1,5 +1,5 @@
/* java_io_VMFile.c - Native methods for java.io.File class
- Copyright (C) 1998, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -730,3 +730,237 @@
return (0);
#endif /* not WITHOUT_FILESYSTEM */
}
+
+/*/
+
+/*
+ * These two methods are used to maintain dynamically allocated
+ * buffers for getCanonicalPath without the overhead of calling
+ * realloc every time a buffer is modified. Buffers are