gcc/libgfortran/io
Thomas Koenig d02b2c6474 re PR libfortran/18982 (open(status="new") does not generate an error if the file exists)
2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/18982
	* io/unix.c (regular_file):  No need to change flags->action
	if an error occurs.  Document this.
	No need to call stat() for STATUS_OLD, open() will
	fail anyway.
	For ACTION_UNSPECIFIED, try open for read-write, then for
	read-only if open fails with EACCES, then for write-only
	if that fails with EACCES again.
	* io/unix.c (open_external): Document changed behavior of
	regular_file.
testsuite/
	* gfortran.dg/open_new.f90: New file.

From-SVN: r94076
2005-01-22 19:49:18 +00:00
..
backspace.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
close.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
endfile.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
format.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
inquire.c re PR libfortran/19314 (inquire(position=) segfaults at runtime) 2005-01-22 03:51:12 +00:00
io.h re PR fortran/19194 (Missing RECL parameter in OPEN statement) 2005-01-22 15:37:39 +01:00
list_read.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
lock.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
open.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
read.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
rewind.c re PR libfortran/19314 (inquire(position=) segfaults at runtime) 2005-01-22 03:51:12 +00:00
transfer.c re PR libfortran/19314 (inquire(position=) segfaults at runtime) 2005-01-22 03:51:12 +00:00
unit.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
unix.c re PR libfortran/18982 (open(status="new") does not generate an error if the file exists) 2005-01-22 19:49:18 +00:00
write.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00