gcc/libjava/include
David Daney 8c0dbf3490 re PR libgcj/29324 (add wait handling hook)
PR libgcj/29324
	* include/posix-threads.h (_Jv_BlockSigchld): Declare.
	(_Jv_UnBlockSigchld): Same.
	* posix-threads.cc: Include posix-threads.h.
	(block_sigchld) Rename to...
	(_Jv_BlockSigchld) ... this.
	(_Jv_UnBlockSigchld): New function.
	(_Jv_InitThreads): Call _Jv_BlockSigchld in place of block_sigchld.
	(_Jv_ThreadStart): Same.
	* java/lang/PosixProcess$ProcessManager.h: Regenerate.
	* java/lang/PosixProcess.java: Clean up imports.
	(ProcessManager): Make final.
	(ProcessManager.queue): Genericise and make private.
	(ProcessManager.pidToProcess): Remove.
	(ProcessManager.liveProcesses): New field.
	(ProcessManager.reaperPID): Remove.
	(ProcessManager.nativeData): New field.
	(ProcessManager.removeProcessFromMap): Remove.
	(ProcessManager.addProcessToMap):Remove.
	(ProcessManager.addToLiveProcesses): New method.
	(ProcessManager.run): Rewritten.
	(ProcessManager.reap): Change method signature,
	(getErrorStream): Correct formatting.
	(getInputStream): Same.
	(spawn): Add process to liveProcesses list.
	(pid): Make package private.
	* java/lang/PosixProcess.h: Regenerate.
	* java/lang/natPosixProcess.cc: Include posix.h and posix-threads.h.
	Add useing namespace java::lang.
	(ProcessManagerInternal): New struct.
	(sigchld_handler): Rewritten.
	(init): Rewritten.
	(waitForSignal): Same.
	(reap): Same.
	(signalReaper): Same.
	(nativeDestroy): Call kill as ::kill.
	(nativeSpawn): Correct formatting.
	* classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Regenerate.
	* classpath/lib/java/lang/PosixProcess.class: Same.
	* classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.

From-SVN: r124638
2007-05-12 17:37:55 +00:00
..
boehm-gc.h no-gc.h (_Jv_IsThreadSuspended): Declare. 2007-04-23 21:12:10 +00:00
config.h.in configure.ac: Remove checks for mktime... 2007-03-26 18:15:31 +00:00
darwin-signal.h Index: gcc/ChangeLog 2004-07-01 04:09:07 +00:00
default-signal.h prims.cc (unblock_signal): Annotate signum with __unused__ to avoid warnings in the non-POSIX_VERSION case. 2004-09-26 13:38:49 -07:00
dwarf2-signal.h prims.cc (catch_segv): Create exception in handler. 2003-06-13 12:20:45 +00:00
execution.h ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
hppa-signal.h configure.ac: Add the POSIX thread libs to the HP-UX PA configuration. 2006-05-20 23:33:07 +02:00
i386-signal.h i386-signal.h: Rewrite to use rt_sigaction. 2007-01-12 12:30:56 +00:00
java-assert.h
java-chardecomp.h unicode-decomp.pl: Move from chartables.pl... 2002-03-06 18:54:45 +00:00
java-chartables.h unicode-muncher.pl: Removed this file. 2006-03-28 16:12:52 +00:00
java-cpool.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
java-insns.h java-insns.h (enum java_code): Add op_breakpoint. 2006-10-14 20:11:12 +00:00
java-interp.h interpret-run.cc (NEXT_INSN): Advance PC before executing the instruction. 2007-05-01 02:50:02 +00:00
java-props.h re PR libgcj/23761 (java.library.path doesn't affect module loading path) 2005-09-08 21:26:25 +00:00
java-stack.h java-interp.h: Added _Jv_Frame class and its two subclasses _Jv_InterpFrame and _Jv_NativeFrame. 2007-01-29 22:05:56 +00:00
jni_md.h re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
jvm.h ffi.h.in (ffi_closure_alloc, [...]): New. 2007-03-07 07:27:25 +00:00
jvmpi.h
jvmti_md.h jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define. 2007-01-29 17:43:34 +00:00
jvmti-int.h jvmti-int.h (_Jv_ReportJVMTIExceptionThrow): Declare. 2007-05-04 01:04:11 +00:00
Makefile.am Imported Classpath 0.18. 2005-09-23 21:31:04 +00:00
Makefile.in configure.ac: Remove checks for mktime... 2007-03-26 18:15:31 +00:00
mips-signal.h mips-signal.h (sys/syscall.h): Do not include. 2006-11-20 19:49:08 +00:00
no-gc.h no-gc.h (_Jv_IsThreadSuspended): Declare. 2007-04-23 21:12:10 +00:00
no-threads.h re PR libgcj/28546 (./java/lang/Thread.h:31: error: using typedef-name '_Jv_Thread_t' after 'class') 2006-08-02 22:18:05 +02:00
pa-signal.h pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define. 2004-07-09 03:39:35 +00:00
posix-threads.h re PR libgcj/29324 (add wait handling hook) 2007-05-12 17:37:55 +00:00
posix.h re PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec()) 2007-03-23 00:06:41 +00:00
powerpc-signal.h powerpc-signal.h: Fix typo in comment. 2006-03-10 23:31:15 +01:00
s390-signal.h s390.md ("udivsi3"): Ensure trap is generated for division by zero. 2004-07-14 13:09:09 +00:00
sh-signal.h linux-unwind.h (shmedia_fallback_frame_state): Set fs->signal_frame. 2006-03-16 02:44:10 +00:00
sparc-signal.h prims.cc (unblock_signal): Annotate signum with __unused__ to avoid warnings in the non-POSIX_VERSION case. 2004-09-26 13:38:49 -07:00
stamp-h.in
win32-signal.h prims.cc (catch_segv): Create exception in handler. 2003-06-13 12:20:45 +00:00
win32-threads.h * include/win32-threads.h: Added #undef OUT. 2007-02-22 14:13:34 +00:00
win32.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
x86_64-signal.h i386-signal.h: Rewrite to use rt_sigaction. 2007-01-12 12:30:56 +00:00