natPipeImplWin32.cc [plain text]
#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 <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* )
{
int filedes [2];
if (_Jv_pipe (filedes) < 0)
throw new ::java::io::IOException (JvNewStringUTF (strerror (errno)));
}