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 Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
fbuf.c Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
fbuf.h Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
file_pos.c Improve performance of byte-swapped I/O. 2013-01-23 23:56:54 +02:00
format.c re PR libfortran/56737 (Wrong I/O result with format cache for Hollerith strings) 2013-03-29 10:39:47 +01:00
format.h Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
inquire.c Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
intrinsics.c Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
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 Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
open.c environ.c: Include unistd.h. 2013-05-04 17:23:11 -04:00
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 Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
transfer.c trans-decl.c: Fix comment typos. 2013-07-21 19:57:23 +02:00
transfer128.c Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
unit.c Update copyright years in libgfortran. 2013-01-14 18:20:58 +00:00
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 PR 56981 Improve unbuffered performance on special files. 2013-04-29 11:42:00 +03:00
write.c Use C99 bool instead of enum try. 2013-03-19 13:13:32 +02:00
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