natFileDescriptorPosix.cc (open): Recognize EXCL flag.

* java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
	* java/io/FileDescriptor.java (EXCL): New static field.
	* java/io/File.java (tmpdir): New static field.
	(createTempFile): New method.
	(nextValue): New method.
	* java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
	property.

From-SVN: r31922
This commit is contained in:
Tom Tromey 2000-02-11 17:32:52 +00:00 committed by Tom Tromey
parent a1cee8a3f3
commit 304ccb1075
5 changed files with 92 additions and 4 deletions

View file

@ -1,6 +1,6 @@
// FileDescriptor.java - Open file or device
/* Copyright (C) 1998, 1999 Red Hat, Inc.
/* Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
This file is part of libgcj.
@ -36,6 +36,8 @@ public final class FileDescriptor
static final int READ = 1;
static final int WRITE = 2;
static final int APPEND = 4;
// EXCL is used only when making a temp file.
static final int EXCL = 8;
// These are WHENCE values for seek.
static final int SET = 0;