gcc/libgfortran/io
Janne Blomqvist 35f48a901d When file status is unknown, don't set O_CREAT when opening read-only.
2013-11-15  Janne Blomqvist  <jb@gcc.gnu.org>
	    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/59108
	* io/unix.c (regular_file): Don't set O_CREAT when opening a file
	read-only with unknown status. Mask out O_CREAT when falling back
	to opening read-only if ACTION= is not set and read-write fails.

Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>

From-SVN: r204864
2013-11-16 00:00:36 +02:00
..
close.c
fbuf.c
fbuf.h
file_pos.c
format.c
format.h
inquire.c
intrinsics.c
io.h re PR libfortran/35862 ([F2003] Implement new rounding modes for run time) 2013-07-21 13:54:27 +02:00
list_read.c re PR fortran/55469 (memory leak on read with istat.ne.0) 2013-10-01 22:52:49 +02:00
lock.c
open.c
read.c re PR libfortran/35862 ([F2003] Implement new rounding modes for run time) 2013-07-21 13:54:27 +02:00
size_from_kind.c
transfer128.c
transfer.c trans-decl.c: Fix comment typos. 2013-07-21 19:57:23 +02:00
unit.c
unix.c When file status is unknown, don't set O_CREAT when opening read-only. 2013-11-16 00:00:36 +02:00
unix.h
write_float.def re PR libfortran/57496 (I/O: WRITE(*,*) HUGE(0._10) gives SIGFPE with -ffpe-trap=overflow) 2013-06-03 11:20:46 +02:00
write.c