source:
trunk/src/gcc/libjava/java/lang/EcosProcess.java@
603
| Last change on this file since 603 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 1.2 KB | |
| Line | |
|---|---|
| 1 | // EcosProcess.java - Subclass of Process for eCos systems. |
| 2 | |
| 3 | /* Copyright (C) 1998, 1999 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 | package java.lang; |
| 12 | |
| 13 | import java.io.InputStream; |
| 14 | import java.io.OutputStream; |
| 15 | import java.io.IOException; |
| 16 | |
| 17 | /** |
| 18 | * @author Tom Tromey <[email protected]> |
| 19 | * @date May 11, 1999 |
| 20 | */ |
| 21 | |
| 22 | // This is entirely internal to our implementation. |
| 23 | |
| 24 | // This file is copied to `ConcreteProcess.java' before compilation. |
| 25 | // Hence the class name apparently does not match the file name. |
| 26 | final class ConcreteProcess extends Process |
| 27 | { |
| 28 | // See natEcosProcess.cc to understand why this is native. |
| 29 | public native void destroy (); |
| 30 | |
| 31 | public int exitValue () |
| 32 | { |
| 33 | return 0; |
| 34 | } |
| 35 | public InputStream getErrorStream () |
| 36 | { |
| 37 | return null; |
| 38 | } |
| 39 | |
| 40 | public InputStream getInputStream () |
| 41 | { |
| 42 | return null; |
| 43 | } |
| 44 | |
| 45 | public OutputStream getOutputStream () |
| 46 | { |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | public int waitFor () throws InterruptedException |
| 51 | { |
| 52 | return 0; |
| 53 | } |
| 54 | |
| 55 | public ConcreteProcess (String[] progarray, String[] envp) throws IOException |
| 56 | { |
| 57 | throw new IOException ("eCos processes unimplemented"); |
| 58 | } |
| 59 | } |
Note:
See TracBrowser
for help on using the repository browser.
