summaryrefslogtreecommitdiffstats
path: root/libgfortran/configure.ac
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-10 20:34:29 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-10 20:34:29 +0000
commit544db64f1b123e87d643578cd9362d4ef847cee4 (patch)
tree25502b48dbfb346acf48c054900baac6f9b389c0 /libgfortran/configure.ac
parentcc8feb1cf8566f3fc4ca14f6e509e2eb518a2c75 (diff)
downloadppe42-gcc-544db64f1b123e87d643578cd9362d4ef847cee4.tar.gz
ppe42-gcc-544db64f1b123e87d643578cd9362d4ef847cee4.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204654 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure.ac')
-rw-r--r--libgfortran/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
index 4609eba8aa1..6417373404f 100644
--- a/libgfortran/configure.ac
+++ b/libgfortran/configure.ac
@@ -280,7 +280,7 @@ else
strcasestr getrlimit gettimeofday stat fstat lstat getpwuid vsnprintf dup \
getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \
readlink getgid getpid getppid getuid geteuid umask getegid \
- secure_getenv __secure_getenv)
+ secure_getenv __secure_getenv mkostemp)
fi
# Check strerror_r, cannot be above as versions with two and three arguments exist
OpenPOWER on IntegriCloud