win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.

* include/win32.h (_Jv_platform_close_on_exec): Changed
	signature and declared extern.
	* win32.cc (_Jv_platform_close_on_exec): Implemented.
	* gnu/java/net/natPlainDatagramSocketImplWin32.cc
	(create): Use new signature of _Jv_platform_close_on_exec.
	* gnu/java/net/natPlainSocketImplWin32.cc
	(create): Eliminated a few typecasts
	Use new signature of _Jv_platform_close_on_exec.
	(accept): Eliminated a few typecasts
	Use new signature of _Jv_platform_close_on_exec.
	* java/io/natFileDescriptorWin32.cc (open): Use
	_Jv_platform_close_on_exec.

From-SVN: r73325
This commit is contained in:
Mohan Embar 2003-11-07 03:13:56 +00:00 committed by Mohan Embar
parent eb4ad71ac1
commit bbf76ec06c
6 changed files with 53 additions and 17 deletions

View file

@ -363,3 +363,11 @@ _Jv_pipe (int filedes[2])
{
return _pipe (filedes, 4096, _O_BINARY);
}
void
_Jv_platform_close_on_exec (HANDLE h)
{
// Mark the handle as non-inheritable. This has
// no effect under Win9X.
SetHandleInformation (h, HANDLE_FLAG_INHERIT, 0);
}