-
- Downloads
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. From-SVN: r187190
Showing
- gcc/fortran/ChangeLog 5 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/gfortran.texi 22 additions, 9 deletionsgcc/fortran/gfortran.texi
- libgfortran/ChangeLog 15 additions, 0 deletionslibgfortran/ChangeLog
- libgfortran/config.h.in 6 additions, 0 deletionslibgfortran/config.h.in
- libgfortran/configure 8 additions, 2 deletionslibgfortran/configure
- libgfortran/configure.ac 1 addition, 1 deletionlibgfortran/configure.ac
- libgfortran/io/unix.c 78 additions, 47 deletionslibgfortran/io/unix.c
- libgfortran/libgfortran.h 12 additions, 4 deletionslibgfortran/libgfortran.h
- libgfortran/runtime/environ.c 15 additions, 3 deletionslibgfortran/runtime/environ.c
- libgfortran/runtime/main.c 1 addition, 1 deletionlibgfortran/runtime/main.c
Loading
Please register or sign in to comment