r204654 - in /trunk/libgfortran: ChangeLog Make...

jb@gcc.gnu.org jb@gcc.gnu.org
Sun Nov 10 20:34:00 GMT 2013


Author: jb
Date: Sun Nov 10 20:34:29 2013
New Revision: 204654

URL: http://gcc.gnu.org/viewcvs?rev=204654&root=gcc&view=rev
Log:
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.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/Makefile.in
    trunk/libgfortran/aclocal.m4
    trunk/libgfortran/config.h.in
    trunk/libgfortran/configure
    trunk/libgfortran/configure.ac
    trunk/libgfortran/io/unix.c



More information about the Gcc-cvs mailing list