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

@ -270,11 +270,14 @@ java::lang::System::init_properties (void)
SET ("file.separator", "\\");
SET ("path.separator", ";");
SET ("line.separator", "\r\n");
SET ("java.io.tmpdir", "C:\\temp");
#else
// Unix.
SET ("file.separator", "/");
SET ("path.separator", ":");
SET ("line.separator", "\n");
// FIXME: look at getenv("TMPDIR");
SET ("java.io.tmpdir", "/tmp");
#endif
#ifdef HAVE_UNAME