gcc/libgfortran/io
Janne Blomqvist c20fdb917f Set close-on-exec flag when opening files.
2013-11-10  Janne Blomqvist  <jb@gcc.gnu.org>

	* configure.ac: Check presence of mkostemp.
	* io/unix.c (set_close_on_exec): New function.
	(tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
	to calling set_close_on_exec.
	(regular_file): Add O_CLOEXEC to flags if defined.
	(open_external): Call set_close_on_exec if O_CLOEXEC is not
	defined.
	* config.h.in: Regenerated.
	* configure: Regenerated.
	* Makefile.in: Regenerated.
	* aclocal.m4: Regenerated.

From-SVN: r204654
2013-11-10 22:34:29 +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 Set close-on-exec flag when opening files. 2013-11-10 22:34:29 +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