2003-05-13 Michael Koch <konqueror@gmx.de>

* java/io/FileDescriptor.java
       (SYNC): New constant.
       (DSYNC): Likewise.
       (getLength): Renamed from lenght() to match classpath's
       FileDescriptor.java.
       * java/io/RandomAccessFile.java
       (RandomAccessFile): Removed unneeded mode check, implemented mode
       "rws" and "rwd", merged documentation from classpath.
       (setLength): Reformatted.
       (length): Use new getLength() of FileDescriptor.
       * java/io/natFileDescriptorEcos.cc
       (getLength): Renamed from length().
       * java/io/natFileDescriptorPosix.cc
       (open): Implemented support for SYNC and DSYNC.
       (seek): Use getLength() instead of length().
       (getLength): Renamed from length().
       * java/io/natFileDescriptorWin32.cc
       (getLength): Renamed from length().
       (seek): Use getLength() instead of length().
       (available): Likewise.
       * gnu/java/nio/natFileChannelImpl.cc
       (size): Use getLength() instead of length().

From-SVN: r66755
This commit is contained in:
Michael Koch
2003-05-13 09:13:31 +00:00
committed by Michael Koch
parent aa8f1f5793
commit e48d8b8886
7 changed files with 61 additions and 21 deletions
+3 -3
View File
@@ -244,7 +244,7 @@ java::io::FileDescriptor::seek (jlong pos, jint whence, jboolean eof_trunc)
{
JvAssert (whence == SET || whence == CUR);
jlong len = length();
jlong len = getLength();
jlong here = getFilePointer();
if (eof_trunc
@@ -272,7 +272,7 @@ java::io::FileDescriptor::getFilePointer(void)
}
jlong
java::io::FileDescriptor::length(void)
java::io::FileDescriptor::getLength(void)
{
DWORD high;
DWORD low;
@@ -336,5 +336,5 @@ jint
java::io::FileDescriptor::available(void)
{
// FIXME:
return length() - getFilePointer();
return getLength() - getFilePointer();
}