1999-05-12 13:23:44 +02:00
|
|
|
// EcosProcess.java - Subclass of Process for eCos systems.
|
|
|
|
|
2007-03-05 16:57:13 +01:00
|
|
|
/* Copyright (C) 1998, 1999, 2006, 2007 Free Software Foundation
|
1999-05-12 13:23:44 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2002-08-14 03:07:59 +02:00
|
|
|
import java.io.File;
|
1999-05-12 13:23:44 +02:00
|
|
|
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.
|
|
|
|
|
2007-01-09 20:58:05 +01:00
|
|
|
final class EcosProcess extends Process
|
1999-05-12 13:23:44 +02:00
|
|
|
{
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2007-03-05 16:57:13 +01:00
|
|
|
public EcosProcess (String[] progarray, String[] envp, File dir,
|
|
|
|
boolean redirect)
|
2002-08-14 03:07:59 +02:00
|
|
|
throws IOException
|
1999-05-12 13:23:44 +02:00
|
|
|
{
|
|
|
|
throw new IOException ("eCos processes unimplemented");
|
|
|
|
}
|
|
|
|
}
|