From 54c99af1553e4093dd007c19eff81a7ae55297b3 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Thu, 20 Mar 2003 11:14:35 +0000 Subject: 2003-03-20 Michael Koch * 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 --- libjava/gnu/java/nio/natMappedByteFileBuffer.cc | 36 +++++++++++++++---------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'libjava/gnu/java/nio/natMappedByteFileBuffer.cc') diff --git a/libjava/gnu/java/nio/natMappedByteFileBuffer.cc b/libjava/gnu/java/nio/natMappedByteFileBuffer.cc index 6f2eee2..e64e27c 100644 --- a/libjava/gnu/java/nio/natMappedByteFileBuffer.cc +++ b/libjava/gnu/java/nio/natMappedByteFileBuffer.cc @@ -24,13 +24,14 @@ details. */ #include #endif +#include #include #include 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")); } -- cgit v1.1