diff options
author | Michael Koch <konqueror@gmx.de> | 2003-03-20 11:14:35 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-03-20 11:14:35 +0000 |
commit | 54c99af1553e4093dd007c19eff81a7ae55297b3 (patch) | |
tree | 9fe3a88d762e1d449fc098bc9f0bf3f4d473b82f /libjava/gnu/java/nio/natFileChannelImpl.cc | |
parent | 111a007d968c210312c47e990086588a6c3e6599 (diff) | |
download | gcc-54c99af1553e4093dd007c19eff81a7ae55297b3.zip gcc-54c99af1553e4093dd007c19eff81a7ae55297b3.tar.gz gcc-54c99af1553e4093dd007c19eff81a7ae55297b3.tar.bz2 |
2003-03-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileChannelImpl.java
(address): Removed.
(map_address): New member variable.
(length): Make it package private.
(fd): Make it package private.
(buf): Make it package private.
(file_obj): Make it package private.
(FileChannelImpl): New constructor.
(nio_mmap_file): Use RawData instead of long.
(nio_munmap_file): Use RawData instead of long.
(nio_msync): Use RawData instead of long.
(implCloseChannel): New implementation using map_address.
(read): Reformated.
(map): Implemented.
(create_direct_mapped_buffer): Implemented, use RawData, throws
IOException.
(force): Use map_address instead of address.
* gnu/java/nio/MappedByteFileBuffer.java
(address): Removed.
(map_address): New member variable.
(MappedByteFileBuffer): Use map_address instead of address, reformated.
(several methods): Use map_address instead of address, replaced long
with RawData where appropriate.
* gnu/java/nio/natFileChannelImpl.cc
(nio_mmap_file): Replaced long with RawData.
(nio_munmap_file): Replaced long with RawData.
(nio_msync): Replaced long with RawData.
* gnu/java/nio/natMappedByteFileBuffer.cc
(several methods): Replaced long with RawData where appropriate.
From-SVN: r64612
Diffstat (limited to 'libjava/gnu/java/nio/natFileChannelImpl.cc')
-rw-r--r-- | libjava/gnu/java/nio/natFileChannelImpl.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libjava/gnu/java/nio/natFileChannelImpl.cc b/libjava/gnu/java/nio/natFileChannelImpl.cc index 8ba8382..9413a77 100644 --- a/libjava/gnu/java/nio/natFileChannelImpl.cc +++ b/libjava/gnu/java/nio/natFileChannelImpl.cc @@ -24,6 +24,7 @@ details. */ #include <fcntl.h> #endif +#include <gnu/gcj/RawData.h> #include <gnu/java/nio/FileChannelImpl.h> #include <java/io/FileDescriptor.h> #include <java/io/IOException.h> @@ -55,20 +56,20 @@ gnu::java::nio::FileChannelImpl::implTruncate (jlong size) return this; } -jlong -gnu::java::nio::FileChannelImpl::nio_mmap_file (jlong, jlong, jint) +gnu::gcj::RawData* +gnu::java::nio::FileChannelImpl::nio_mmap_file (jlong pos, jlong size, jint /*mode*/) { throw new ::java::io::IOException (JvNewStringUTF ("mmap not implemented")); } void -gnu::java::nio::FileChannelImpl::nio_unmmap_file (jlong, jint) +gnu::java::nio::FileChannelImpl::nio_unmmap_file (gnu::gcj::RawData* map_address, jint size) { throw new ::java::io::IOException (JvNewStringUTF ("munmap not implemented")); } void -gnu::java::nio::FileChannelImpl::nio_msync (jlong, jint) +gnu::java::nio::FileChannelImpl::nio_msync (gnu::gcj::RawData* map_address, jint length) { throw new ::java::io::IOException (JvNewStringUTF ("msync not implemented")); } |