* java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
read/write case. Fixes PR libgcj/2338.
From-SVN: r40692
+2001-03-21 Tom Tromey <tromey@redhat.com>
+
+ * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
+ read/write case. Fixes PR libgcj/2338.
+
2001-03-20 Warren Levy <warrenl@redhat.com>
* java/util/TimeZone.java: Sync up with Classpath. Includes new
// natFileDescriptor.cc - Native part of FileDescriptor class.
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
This file is part of libgcj.
JvAssert ((jflags & READ) || (jflags & WRITE));
int mode = 0666;
if ((jflags & READ) && (jflags & WRITE))
- flags |= O_RDWR;
+ flags |= O_RDWR | O_CREAT;
else if ((jflags & READ))
flags |= O_RDONLY;
else