diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2012-05-05 06:30:51 +0000 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2012-05-05 06:30:51 +0000 |
commit | f05352303cba602167c262eea3badbf8f9d44c88 (patch) | |
tree | ac63807666eaf2ebc05379c848806981ba536332 /libgfortran/config.h.in | |
parent | 36fbd6b7ba2925aca2cd8262433ce6dbb8462725 (diff) |
Fix handling of temporary files.
2012-05-05 Janne Blomqvist <jb@gcc.gnu.org>
* gfortran.texi (GFORTRAN_TMPDIR): Rename to TMPDIR, explain
algorithm for choosing temp directory.
2012-05-05 Janne Blomqvist <jb@gcc.gnu.org>
* config.h.in: Regenerated.
* configure: Regenerated.
* configure.ac: Add checks for getegid and __secure_getenv.
* io/unix.c (P_tmpdir): Fallback definition for macro.
(tempfile_open): New function.
(tempfile): Use secure_getenv, call tempfile_open to try each
directory in turn.
* libgfortran.h (DEFAULT_TMPDIR): Remove macro.
(secure_getenv): New macro/prototype.
* runtime/environ.c (secure_getenv): New function.
(variable_table): Rename GFORTRAN_TMPDIR to TMPDIR.
* runtime/main.c (find_addr2line): Use secure_getenv.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@187190 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/config.h.in')
-rw-r--r-- | libgfortran/config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in index 30a7e121325..b75fa968023 100644 --- a/libgfortran/config.h.in +++ b/libgfortran/config.h.in @@ -426,6 +426,9 @@ /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD +/* Define to 1 if you have the `getegid' function. */ +#undef HAVE_GETEGID + /* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID @@ -834,6 +837,9 @@ /* Define to 1 if you have the `ynl' function. */ #undef HAVE_YNL +/* Define to 1 if you have the `__secure_getenv' function. */ +#undef HAVE___SECURE_GETENV + /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR |