Index: include/gnu_java_nio_PipeImpl.h =================================================================== RCS file: include/gnu_java_nio_PipeImpl.h diff -N include/gnu_java_nio_PipeImpl.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ include/gnu_java_nio_PipeImpl.h 8 Apr 2004 23:08:25 -0000 @@ -0,0 +1,19 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ + +#ifndef __gnu_java_nio_PipeImpl__ +#define __gnu_java_nio_PipeImpl__ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +extern JNIEXPORT void JNICALL Java_gnu_java_nio_PipeImpl_nativeInit (JNIEnv *env, jobject, jobject); + +#ifdef __cplusplus +} +#endif + +#endif /* __gnu_java_nio_PipeImpl__ */ Index: include/gnu_java_nio_SelectorImpl.h =================================================================== RCS file: include/gnu_java_nio_SelectorImpl.h diff -N include/gnu_java_nio_SelectorImpl.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ include/gnu_java_nio_SelectorImpl.h 8 Apr 2004 23:08:25 -0000 @@ -0,0 +1,19 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ + +#ifndef __gnu_java_nio_SelectorImpl__ +#define __gnu_java_nio_SelectorImpl__ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +extern JNIEXPORT jint JNICALL Java_gnu_java_nio_SelectorImpl_implSelect (JNIEnv *env, jclass, jintArray, jintArray, jintArray, jlong); + +#ifdef __cplusplus +} +#endif + +#endif /* __gnu_java_nio_SelectorImpl__ */ Index: include/Makefile.am =================================================================== RCS file: /cvsroot/classpath/classpath/include/Makefile.am,v retrieving revision 1.12 diff -u -r1.12 Makefile.am --- include/Makefile.am 8 Apr 2004 20:04:13 -0000 1.12 +++ include/Makefile.am 8 Apr 2004 23:08:25 -0000 @@ -39,6 +39,8 @@ $(top_srcdir)/include/gnu_java_net_PlainDatagramSocketImpl.h \ $(top_srcdir)/include/gnu_java_net_PlainSocketImpl.h \ $(top_srcdir)/include/gnu_java_nio_NIOServerSocket.h \ +$(top_srcdir)/include/gnu_java_nio_PipeImpl.h \ +$(top_srcdir)/include/gnu_java_nio_SelectorImpl.h \ $(top_srcdir)/include/gnu_java_nio_channels_FileChannelImpl.h \ $(top_srcdir)/include/java_io_FileDescriptor.h \ $(top_srcdir)/include/java_io_File.h \ @@ -133,6 +135,10 @@ $(JAVAH) -o $@ gnu.java.net.PlainSocketImpl $(top_srcdir)/include/gnu_java_nio_NIOServerSocket.h: $(top_srcdir)/gnu/java/nio/NIOServerSocket.java $(JAVAH) -o $@ gnu.java.nio.NIOServerSocket +$(top_srcdir)/include/gnu_java_nio_PipeImpl.h: $(top_srcdir)/gnu/java/nio/PipeImpl.java + $(JAVAH) -o $@ gnu.java.nio.PipeImpl +$(top_srcdir)/include/gnu_java_nio_SelectorImpl.h: $(top_srcdir)/gnu/java/nio/SelectorImpl.java + $(JAVAH) -o $@ gnu.java.nio.SelectorImpl $(top_srcdir)/include/java_io_FileDescriptor.h: $(top_srcdir)/java/io/FileDescriptor.java $(JAVAH) -o $@ java.io.FileDescriptor $(top_srcdir)/include/java_io_File.h: $(top_srcdir)/java/io/File.java Index: native/jni/java-nio/gnu_java_nio_PipeImpl.c =================================================================== RCS file: native/jni/java-nio/gnu_java_nio_PipeImpl.c diff -N native/jni/java-nio/gnu_java_nio_PipeImpl.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ native/jni/java-nio/gnu_java_nio_PipeImpl.c 8 Apr 2004 23:08:25 -0000 @@ -0,0 +1,54 @@ +/* gnu_java_nio_PipeImpl.c - Native methods for PipeImpl class + Copyright (C) 2004 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath 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. + +GNU Classpath 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 GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +#include +#include + +#include +#include + +#include "gnu_java_nio_PipeImpl.h" + +#define IO_EXCEPTION "java/io/IOException" + +JNIEXPORT void JNICALL +Java_gnu_java_nio_PipeImpl_nativeInit (JNIEnv *env, jobject obj, + jobject provider) +{ + JCL_ThrowException (env, IO_EXCEPTION, "gnu.java.nio.PipeImpl.nativeInit(): not implemented"); +} + Index: native/jni/java-nio/gnu_java_nio_SelectorImpl.c =================================================================== RCS file: native/jni/java-nio/gnu_java_nio_SelectorImpl.c diff -N native/jni/java-nio/gnu_java_nio_SelectorImpl.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ native/jni/java-nio/gnu_java_nio_SelectorImpl.c 8 Apr 2004 23:08:25 -0000 @@ -0,0 +1,56 @@ +/* gnu_java_nio_SelectorImpl.c - Native methods for SelectorImpl class + Copyright (C) 2004 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath 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. + +GNU Classpath 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 GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +#include +#include + +#include +#include + +#include "gnu_java_nio_SelectorImpl.h" + +#define IO_EXCEPTION "java/io/IOException" + +JNIEXPORT jint JNICALL +Java_gnu_java_nio_SelectorImpl_implSelect (JNIEnv *env, jclass obj, + jintArray read, jintArray write, + jintArray except, jlong timeout) +{ + JCL_ThrowException (env, IO_EXCEPTION, "gnu.java.nio.SelectorImpl.implSelect(): not implemented"); + return 0; +} + Index: native/jni/java-nio/Makefile.am =================================================================== RCS file: /cvsroot/classpath/classpath/native/jni/java-nio/Makefile.am,v retrieving revision 1.3 diff -u -r1.3 Makefile.am --- native/jni/java-nio/Makefile.am 8 Apr 2004 20:04:13 -0000 1.3 +++ native/jni/java-nio/Makefile.am 8 Apr 2004 23:08:25 -0000 @@ -1,6 +1,8 @@ pkglib_LTLIBRARIES = libjavanio.la libjavanio_la_SOURCES = gnu_java_nio_NIOServerSocket.c \ + gnu_java_nio_PipeImpl.c \ + gnu_java_nio_SelectorImpl.c \ gnu_java_nio_channels_FileChannelImpl.c \ java_nio_DirectByteBufferImpl.c \ java_nio_FileLockImpl.c