gcc/libjava/java/lang/EcosProcess.java
Tom Tromey f4a2a1deec sources.am, [...]: Rebuilt.
* sources.am, Makefile.in: Rebuilt.
	* scripts/makemake.tcl (emit_package_rule): Don't omit
	VMProcess.java.
	* Makefile.am (nat_source_files): Added natVMProcess.cc.
	(inner_nat_headers): Added ImmediateEOFInputStream.h.
	* gcj/javaprims.h: Regenerated.
	* java/lang/System.java (EnvironmentMap): Now package-private.
	(EnvironmentMap(Map)): New constructor.
	(EnvironmentMap.put): New method.
	* java/lang/natWin32Process.cc (startProcess): Update.
	* java/lang/Win32Process.java (Win32Process): Added 'redirect'
	argument.
	(startProcess): Likewise.
	* java/lang/EcosProcess.java (EcosProcess): Added 'redirect'
	argument.
	* java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection.
	* java/lang/PosixProcess.java (redirect): New field.
	(PosixProcess): Added 'redirect' argument.
	* java/lang/natRuntime.cc (execInternal): Added 'redirect'
	argument to Process creation.
	* java/lang/natVMProcess.cc: New file.
	* java/lang/ProcessBuilder.java: Removed.
	* java/lang/VMProcess.java: New file.

From-SVN: r122553
2007-03-05 15:57:13 +00:00

61 lines
1.2 KiB
Java

// 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");
}
}