* java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for
PR libgcj/202.
(available): Initialize `Where' to prevent bogus compiler warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33181
138bc75d-0d04-0410-961f-
82ee72b054a4
+2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
+ libgcj/202.
+ (available): Initialize `where' to prevent bogus compiler warning.
+
2000-04-12 Tom Tromey <tromey@cygnus.com>
* java/lang/natString.cc (intern): Temporarily disable finalizer
#endif
JvAssert ((jflags & READ) || (jflags & WRITE));
- int mode = 0644;
+ int mode = 0666;
if ((jflags & READ) && (jflags & WRITE))
flags |= O_RDWR;
else if ((jflags & READ))
if (! num_set)
{
struct stat sb;
- off_t where;
+ off_t where = 0;
if (fstat (fd, &sb) != -1
&& S_ISREG (sb.st_mode)
&& (where = lseek (fd, SEEK_CUR, 0)) != (off_t) -1)