summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/natVMPipePosix.cc
diff options
context:
space:
mode:
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-18 11:32:40 +0000
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-18 11:32:40 +0000
commit938166feb76002d64dfaf9dcafe7e82f4f88d289 (patch)
treee8c12f9ab8dda0b6fb574b15c7043c09001acb33 /libjava/gnu/java/nio/natVMPipePosix.cc
parent33a34f1ef6395c12c11acca6208647125e7591f5 (diff)
downloadppe42-gcc-938166feb76002d64dfaf9dcafe7e82f4f88d289.tar.gz
ppe42-gcc-938166feb76002d64dfaf9dcafe7e82f4f88d289.zip
2007-01-18 Gary Benson <gbenson@redhat.com>
* gnu/java/nio/natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc. * gnu/java/nio/natVMPipePosix.cc: Renamed from gnu/java/nio/natPipeImplPosix.cc. * gnu/java/nio/natVMPipeWin32.cc: Renamed from gnu/java/nio/natPipeImplWin32.cc. * gnu/java/nio/natVMSelectorEcos.cc: Renamed from gnu/java/nio/natSelectorImplEcos.cc. * gnu/java/nio/natVMSelectorPosix.cc: Renamed from gnu/java/nio/natSelectorImplPosix.cc. * gnu/java/nio/natVMSelectorWin32.cc: Renamed from gnu/java/nio/natSelectorImplWin32.cc. * java/io/natVMObjectInputStream.cc: Renamed from java/io/natObjectInputStream.cc. * java/lang/natVMDouble.cc: Renamed from java/lang/natDouble.cc. * java/lang/natVMFloat.cc: Renamed from java/lang/natFloat.cc. * Makefile.am, configure.ac: Reflect the above. * Makefile.in, configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/natVMPipePosix.cc')
-rw-r--r--libjava/gnu/java/nio/natVMPipePosix.cc41
1 files changed, 41 insertions, 0 deletions
diff --git a/libjava/gnu/java/nio/natVMPipePosix.cc b/libjava/gnu/java/nio/natVMPipePosix.cc
new file mode 100644
index 00000000000..3de136a6e3d
--- /dev/null
+++ b/libjava/gnu/java/nio/natVMPipePosix.cc
@@ -0,0 +1,41 @@
+// natVMPipeImplPosix.cc
+
+/* Copyright (C) 2003, 2004, 2007 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+#include <config.h>
+#include <platform.h>
+
+#include <errno.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <gnu/java/nio/PipeImpl.h>
+#include <gnu/java/nio/VMPipe.h>
+//#include <gnu/java/nio/PipeImpl$SinkChannelImpl.h>
+//#include <gnu/java/nio/PipeImpl$SourceChannelImpl.h>
+#include <java/io/IOException.h>
+#include <java/nio/channels/spi/SelectorProvider.h>
+
+void
+gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl*, /*self*/
+ ::java::nio::channels::spi::SelectorProvider*
+ /*provider*/)
+{
+ int filedes [2];
+
+ if (_Jv_pipe (filedes) < 0)
+ throw new ::java::io::IOException (JvNewStringUTF (strerror (errno)));
+
+ /* FIXME
+ source = new gnu::java::nio::PipeImpl$SourceChannelImpl
+ (this, provider, filedes [0]);
+ sink = new gnu::java::nio::PipeImpl$SinkChannelImpl
+ (this, provider, filedes [1]);
+ */
+}
OpenPOWER on IntegriCloud