463c03f1bc
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. From-SVN: r120895
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
// natVMPipeImplWin32.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]);
|
|
*/
|
|
}
|