summaryrefslogtreecommitdiff
path: root/libjava/java/lang/EcosProcess.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/EcosProcess.java')
-rw-r--r--libjava/java/lang/EcosProcess.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/libjava/java/lang/EcosProcess.java b/libjava/java/lang/EcosProcess.java
new file mode 100644
index 000000000..79c2f12a5
--- /dev/null
+++ b/libjava/java/lang/EcosProcess.java
@@ -0,0 +1,60 @@
+// EcosProcess.java - Subclass of Process for eCos systems.
+
+/* Copyright (C) 1998, 1999, 2006, 2007 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.lang;
+
+import java.io.File;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.IOException;
+
+/**
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date May 11, 1999
+ */
+
+// This is entirely internal to our implementation.
+
+final class EcosProcess extends Process
+{
+ // See natEcosProcess.cc to understand why this is native.
+ public native void destroy ();
+
+ public int exitValue ()
+ {
+ return 0;
+ }
+ public InputStream getErrorStream ()
+ {
+ return null;
+ }
+
+ public InputStream getInputStream ()
+ {
+ return null;
+ }
+
+ public OutputStream getOutputStream ()
+ {
+ return null;
+ }
+
+ public int waitFor () throws InterruptedException
+ {
+ return 0;
+ }
+
+ public EcosProcess (String[] progarray, String[] envp, File dir,
+ boolean redirect)
+ throws IOException
+ {
+ throw new IOException ("eCos processes unimplemented");
+ }
+}