diff options
| author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-20 11:14:35 +0000 |
|---|---|---|
| committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-20 11:14:35 +0000 |
| commit | dadab084821ab678e4dce4c4faf1f76c7d86e92f (patch) | |
| tree | 9fe3a88d762e1d449fc098bc9f0bf3f4d473b82f /libjava/gnu/java/nio/natMappedByteFileBuffer.cc | |
| parent | 8c10f814b621d4dd5284e911aafc01f2f86e6d02 (diff) | |
| download | ppe42-gcc-dadab084821ab678e4dce4c4faf1f76c7d86e92f.tar.gz ppe42-gcc-dadab084821ab678e4dce4c4faf1f76c7d86e92f.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64612 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/natMappedByteFileBuffer.cc')
| -rw-r--r-- | libjava/gnu/java/nio/natMappedByteFileBuffer.cc | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/libjava/gnu/java/nio/natMappedByteFileBuffer.cc b/libjava/gnu/java/nio/natMappedByteFileBuffer.cc index 6f2eee2107d..e64e27c8829 100644 --- a/libjava/gnu/java/nio/natMappedByteFileBuffer.cc +++ b/libjava/gnu/java/nio/natMappedByteFileBuffer.cc @@ -24,13 +24,14 @@ details. */ #include <fcntl.h> #endif +#include <gnu/gcj/RawData.h> #include <gnu/java/nio/MappedByteFileBuffer.h> #include <java/lang/Error.h> jbyte gnu::java::nio::MappedByteFileBuffer::nio_read_Byte_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -38,7 +39,7 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Byte_file_channel jchar gnu::java::nio::MappedByteFileBuffer::nio_read_Char_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -46,7 +47,7 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Char_file_channel jdouble gnu::java::nio::MappedByteFileBuffer::nio_read_Double_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -54,7 +55,7 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Double_file_channel jfloat gnu::java::nio::MappedByteFileBuffer::nio_read_Float_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -62,7 +63,7 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Float_file_channel jint gnu::java::nio::MappedByteFileBuffer::nio_read_Int_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -70,7 +71,7 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Int_file_channel jlong gnu::java::nio::MappedByteFileBuffer::nio_read_Long_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -78,7 +79,7 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Long_file_channel jshort gnu::java::nio::MappedByteFileBuffer::nio_read_Short_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong) + jint, jint, gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -86,7 +87,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_read_Short_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Byte_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jbyte, jlong) + jint, jint, jbyte, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -94,7 +96,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_write_Byte_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Char_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jchar, jlong) + jint, jint, jchar, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -102,7 +105,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_write_Char_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Double_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jdouble, jlong) + jint, jint, jdouble, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -110,7 +114,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_write_Double_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Float_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jfloat, jlong) + jint, jint, jfloat, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -118,7 +123,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_write_Float_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Int_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jint, jlong) + jint, jint, jint, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -126,7 +132,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_write_Int_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Long_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jlong, jlong) + jint, jint, jlong, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } @@ -134,7 +141,8 @@ gnu::java::nio::MappedByteFileBuffer::nio_write_Long_file_channel void gnu::java::nio::MappedByteFileBuffer::nio_write_Short_file_channel (gnu::java::nio::FileChannelImpl*, - jint, jint, jshort, jlong) + jint, jint, jshort, + gnu::gcj::RawData*) { throw new ::java::lang::Error (_Jv_NewStringUTF ("not implemented")); } |

