+2002-06-06 Adam Megacz <adam@xwt.org>
+
+ * java/io/natFileDescriptorWin32.cc (open): Disable Win32 file
+ locking, just like the Sun JVM does.
+
2002-06-05 H.J. Lu (hjl@gnu.org)
* Makefile.am (libgcj_convenience.la): Revert the last change.
HANDLE handle = NULL;
DWORD access = 0;
- DWORD share = FILE_SHARE_READ;
DWORD create = OPEN_EXISTING;
char buf[MAX_PATH] = "";
if ((jflags & READ) && (jflags & WRITE))
{
access = GENERIC_READ | GENERIC_WRITE;
- share = 0;
if (jflags & APPEND)
create = OPEN_ALWAYS;
else
else
{
access = GENERIC_WRITE;
- share = 0;
if (jflags & APPEND)
create = OPEN_ALWAYS;
else
create = CREATE_ALWAYS;
}
- handle = CreateFile(buf, access, share, NULL, create, 0, NULL);
+ handle = CreateFile(buf, access, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, create, 0, NULL);
if (handle == INVALID_HANDLE_VALUE)
{