gcc/libjava/include/win32.h
Tom Tromey 0c1fcb02b1 Win32Process.java: Added comment.
* java/lang/Win32Process.java: Added comment.
	* include/posix.h (_Jv_platform_close_on_exec): New function.
	Include fcntl.h.
	* include/win32.h (_Jv_platform_close_on_exec): New function.
	* java/net/natPlainSocketImpl.cc (create): Set close-on-exec
	flag.
	(accept): Likewise.
	* java/net/natPlainDatagramSocketImpl.cc (create): Set
	close-on-exec flag.
	* java/io/natFileDescriptorPosix.cc (open): Set close-on-exec
	flag.

From-SVN: r50536
2002-03-10 17:59:23 +00:00

30 lines
608 B
C

// win32.h -- Helper functions for Microsoft-flavored OSs.
/* Copyright (C) 2002 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. */
#ifndef __JV_WIN32_H__
#define __JV_WIN32_H__
#include <windows.h>
#undef STRICT
#undef __INSIDE_CYGWIN__
#include <winsock.h>
#include <gcj/cni.h>
extern void _Jv_platform_initialize (void);
extern jlong _Jv_platform_gettimeofday ();
void _Jv_platform_close_on_exec (jint)
{
// Ignore.
}
#endif /* __JV_WIN32_H__ */