summaryrefslogtreecommitdiff
path: root/libgfortran/config.h.in
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2013-11-10 22:34:29 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2013-11-10 22:34:29 +0200
commitc20fdb917fff5f3262ee8e3ce27384557ae74ee2 (patch)
tree25502b48dbfb346acf48c054900baac6f9b389c0 /libgfortran/config.h.in
parent8d4483387811bad11f6d7650ac3e73347e88e117 (diff)
downloadgcc-c20fdb917fff5f3262ee8e3ce27384557ae74ee2.tar.gz
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
Diffstat (limited to 'libgfortran/config.h.in')
-rw-r--r--libgfortran/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in
index d7c5ceb864e..74cf35c1e40 100644
--- a/libgfortran/config.h.in
+++ b/libgfortran/config.h.in
@@ -606,6 +606,9 @@
/* Define if you have __mingw_snprintf. */
#undef HAVE_MINGW_SNPRINTF
+/* Define to 1 if you have the `mkostemp' function. */
+#undef HAVE_MKOSTEMP
+
/* Define to 1 if you have the `mkstemp' function. */
#undef HAVE_MKSTEMP