f4a2a1deec
* 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
64 lines
1.9 KiB
C++
64 lines
1.9 KiB
C++
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
|
|
|
#ifndef __java_lang_PosixProcess__
|
|
#define __java_lang_PosixProcess__
|
|
|
|
#pragma interface
|
|
|
|
#include <java/lang/Process.h>
|
|
#include <gcj/array.h>
|
|
|
|
|
|
class java::lang::PosixProcess : public ::java::lang::Process
|
|
{
|
|
|
|
public:
|
|
void destroy();
|
|
private:
|
|
void nativeDestroy();
|
|
public:
|
|
jint exitValue();
|
|
public: // actually package-private
|
|
void processTerminationCleanup();
|
|
public:
|
|
::java::io::InputStream * getErrorStream();
|
|
::java::io::InputStream * getInputStream();
|
|
::java::io::OutputStream * getOutputStream();
|
|
jint waitFor();
|
|
public: // actually package-private
|
|
void spawn(::java::lang::PosixProcess$ProcessManager *);
|
|
private:
|
|
void nativeSpawn();
|
|
public: // actually package-private
|
|
PosixProcess(JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, ::java::io::File *, jboolean);
|
|
static jlong access$0(::java::lang::PosixProcess *);
|
|
static ::java::lang::Object * access$1();
|
|
static void access$2(::java::lang::PosixProcess$ProcessManager *);
|
|
private:
|
|
JArray< ::java::lang::String * > * __attribute__((aligned(__alignof__( ::java::lang::Process)))) progarray;
|
|
JArray< ::java::lang::String * > * envp;
|
|
::java::io::File * dir;
|
|
jboolean redirect;
|
|
::java::lang::Throwable * exception;
|
|
jlong pid;
|
|
public: // actually package-private
|
|
static const jint STATE_WAITING_TO_START = 0;
|
|
static const jint STATE_RUNNING = 1;
|
|
static const jint STATE_TERMINATED = 2;
|
|
jint state;
|
|
jint status;
|
|
private:
|
|
::java::io::InputStream * errorStream;
|
|
::java::io::InputStream * inputStream;
|
|
::java::io::OutputStream * outputStream;
|
|
::java::io::InputStream * returnedErrorStream;
|
|
::java::io::InputStream * returnedInputStream;
|
|
static ::java::lang::Object * queueLock;
|
|
static ::java::lang::PosixProcess$ProcessManager * processManager;
|
|
public:
|
|
static ::java::lang::Class class$;
|
|
};
|
|
|
|
#endif // __java_lang_PosixProcess__
|