OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [java/] [nio/] [natVMPipeWin32.cc] - Blame information for rev 776

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 756 jeremybenn
// natVMPipeImplWin32.cc
2
 
3
/* Copyright (C) 2003, 2004, 2007  Free Software Foundation
4
 
5
   This file is part of libgcj.
6
 
7
This software is copyrighted work licensed under the terms of the
8
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9
details.  */
10
 
11
#include <config.h>
12
#include <platform.h>
13
 
14
#include <errno.h>
15
#include <string.h>
16
#include <unistd.h>
17
 
18
#include <gnu/java/nio/PipeImpl.h>
19
#include <gnu/java/nio/VMPipe.h>
20
//#include <gnu/java/nio/PipeImpl$SinkChannelImpl.h>
21
//#include <gnu/java/nio/PipeImpl$SourceChannelImpl.h>
22
#include <java/io/IOException.h>
23
#include <java/nio/channels/spi/SelectorProvider.h>
24
 
25
void
26
gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl *self,
27
                              ::java::nio::channels::spi::SelectorProvider* /*provider*/)
28
{
29
  int filedes [2];
30
 
31
  if (_Jv_pipe (filedes) < 0)
32
    throw new ::java::io::IOException (JvNewStringUTF (strerror (errno)));
33
 
34
  /* FIXME
35
  source = new gnu::java::nio::PipeImpl$SourceChannelImpl
36
    (this, provider, filedes [0]);
37
  sink = new gnu::java::nio::PipeImpl$SinkChannelImpl
38
    (this, provider, filedes [1]);
39
  */
40
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.