1 // EcosProcess.java - Subclass of Process for eCos systems. 2 3 /* Copyright (C) 1998, 1999, 2006, 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 package java.lang; 12 13 import java.io.File; 14 import java.io.InputStream; 15 import java.io.OutputStream; 16 import java.io.IOException; 17 18 /** 19 * @author Tom Tromey <tromey@cygnus.com> 20 * @date May 11, 1999 21 */ 22 23 // This is entirely internal to our implementation. 24 25 final class EcosProcess extends Process 26 { 27 // See natEcosProcess.cc to understand why this is native. destroy()28 public native void destroy (); 29 exitValue()30 public int exitValue () 31 { 32 return 0; 33 } getErrorStream()34 public InputStream getErrorStream () 35 { 36 return null; 37 } 38 getInputStream()39 public InputStream getInputStream () 40 { 41 return null; 42 } 43 getOutputStream()44 public OutputStream getOutputStream () 45 { 46 return null; 47 } 48 waitFor()49 public int waitFor () throws InterruptedException 50 { 51 return 0; 52 } 53 EcosProcess(String[] progarray, String[] envp, File dir, boolean redirect)54 public EcosProcess (String[] progarray, String[] envp, File dir, 55 boolean redirect) 56 throws IOException 57 { 58 throw new IOException ("eCos processes unimplemented"); 59 } 60 } 61