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.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 // This file is copied to `ConcreteProcess.java' before compilation.
26 // Hence the class name apparently does not match the file name.
27 final class ConcreteProcess extends Process
28 {
29   // See natEcosProcess.cc to understand why this is native.
destroy()30   public native void destroy ();
31 
exitValue()32   public int exitValue ()
33   {
34     return 0;
35   }
getErrorStream()36   public InputStream getErrorStream ()
37   {
38     return null;
39   }
40 
getInputStream()41   public InputStream getInputStream ()
42   {
43     return null;
44   }
45 
getOutputStream()46   public OutputStream getOutputStream ()
47   {
48     return null;
49   }
50 
waitFor()51   public int waitFor () throws InterruptedException
52   {
53     return 0;
54   }
55 
ConcreteProcess(String[] progarray, String[] envp, File dir)56   public ConcreteProcess (String[] progarray,
57                           String[] envp,
58                           File dir)
59     throws IOException
60   {
61     throw new IOException ("eCos processes unimplemented");
62   }
63 }
64