- added gnu header
[cacao.git] / src / native / vm / FileChannelImpl.c
index 4108ce976dd75ed08d554014afc4bf36d8600d5b..d77b161ea9e478440092d15596a860f1e25a7a31 100644 (file)
@@ -1,9 +1,43 @@
-/* class: java/nio/channels/FileChannelImpl */
+/* nat/FileChannelImpl.c - java/nio/channels/FileChannelImpl
+
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+   R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser,
+   M. Probst, S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck,
+   P. Tomsich, J. Wenninger
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+   Contact: cacao@complang.tuwien.ac.at
+
+   Authors: Roman Obermaiser
+
+   Changes: Joseph Wenninger
+
+   $Id: FileChannelImpl.c 873 2004-01-11 20:59:29Z twisti $
+
+*/
 
 
 #include <stdlib.h>
 #include "jni.h"
 #include "types.h"
+#include "toolbox/loging.h"
+#include "gnu_classpath_RawData.h"
 #include "java_nio_channels_FileChannelImpl.h"
 
 
@@ -12,8 +46,9 @@
  * Method:    implPosition
  * Signature: ()J
  */
-JNIEXPORT s8 JNICALL Java_java_nio_channels_FileChannelImpl_implPosition (JNIEnv *env ,  struct java_nio_channels_FileChannelImpl* this ) {
+JNIEXPORT s8 JNICALL Java_java_nio_channels_FileChannelImpl_implPosition(JNIEnv *env, java_nio_channels_FileChannelImpl *this) {
        log_text("Java_java_nio_channels_FileChannelImpl_implPosition ");
+
        return 0;
 }
 
@@ -23,8 +58,10 @@ JNIEXPORT s8 JNICALL Java_java_nio_channels_FileChannelImpl_implPosition (JNIEnv
  * Method:    nio_mmap_file
  * Signature: (JJI)Lgnu/classpath/RawData;
  */
-JNIEXPORT struct gnu_classpath_RawData* JNICALL Java_java_nio_channels_FileChannelImpl_nio_mmap_file (JNIEnv *env ,  struct java_nio_channels_FileChannelImpl* this , s8 par1, s8 par2, s4 par3) {
+JNIEXPORT gnu_classpath_RawData* JNICALL Java_java_nio_channels_FileChannelImpl_nio_mmap_file(JNIEnv *env, java_nio_channels_FileChannelImpl *this, s8 par1, s8 par2, s4 par3)
+{
   log_text("Java_java_nio_channels_FileChannelImpl_nio_mmap_file");
+
   return NULL;
 }
 
@@ -34,8 +71,10 @@ JNIEXPORT struct gnu_classpath_RawData* JNICALL Java_java_nio_channels_FileChann
  * Method:    nio_unmmap_file
  * Signature: (Lgnu/classpath/RawData;I)V
  */
-JNIEXPORT void JNICALL Java_java_nio_channels_FileChannelImpl_nio_unmmap_file (JNIEnv *env ,  struct java_nio_channels_FileChannelImpl* this , struct gnu_classpath_RawData* par1, s4 par2){
+JNIEXPORT void JNICALL Java_java_nio_channels_FileChannelImpl_nio_unmmap_file(JNIEnv *env, struct java_nio_channels_FileChannelImpl* this, struct gnu_classpath_RawData* par1, s4 par2)
+{
        log_text("Java_java_nio_channels_FileChannelImpl_nio_unmmap_file");
+
        return;
 }
 
@@ -45,8 +84,10 @@ JNIEXPORT void JNICALL Java_java_nio_channels_FileChannelImpl_nio_unmmap_file (J
  * Method:    nio_msync
  * Signature: (Lgnu/classpath/RawData;I)V
  */
-JNIEXPORT void JNICALL Java_java_nio_channels_FileChannelImpl_nio_msync (JNIEnv *env ,  struct java_nio_channels_FileChannelImpl* this , struct gnu_classpath_RawData* par1, s4 par2){
+JNIEXPORT void JNICALL Java_java_nio_channels_FileChannelImpl_nio_msync(JNIEnv *env, struct java_nio_channels_FileChannelImpl* this, struct gnu_classpath_RawData* par1, s4 par2)
+{
        log_text("Java_java_nio_channels_FileChannelImpl_nio_msync");
+
        return;
 }