gcc/libgfortran/io
Janne Blomqvist 68ee9c0807 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
2012-05-05 09:30:51 +03:00
..
close.c Split up io/io.h 2009-11-02 23:52:59 +02:00
fbuf.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
fbuf.h PR 47694 Read from named pipe fails 2011-02-23 08:59:51 +02:00
file_pos.c Introduce a size member function to struct stream. 2011-10-31 16:52:26 +02:00
format.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
format.h Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
inquire.c PR 50016 Slow I/O on MingW due to _commit 2011-11-09 17:46:15 +02:00
intrinsics.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
io.h Let the compiler decide whether to inline. 2011-11-10 19:08:24 +02:00
list_read.c re PR libfortran/53051 (I/O: Support reading floating-point numbers which use "Q" for the exponent) 2012-04-22 19:28:34 +02:00
lock.c Remove free_mem 2010-05-07 18:55:59 +03:00
open.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
read.c re PR libfortran/53051 (I/O: Support reading floating-point numbers which use "Q" for the exponent) 2012-04-22 19:28:34 +02:00
size_from_kind.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
transfer128.c re PR fortran/47642 (real(kind=16) - libquadmath - segfault on amd64 FreeBSD) 2011-02-14 16:34:44 +01:00
transfer.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
unit.c re PR libfortran/38199 (missed optimization: I/O performance) 2012-04-17 21:30:29 +02:00
unix.c Fix handling of temporary files. 2012-05-05 09:30:51 +03:00
unix.h Share vtables instead of replicating them for each unit. 2012-03-16 10:30:26 +02:00
write_float.def PR libfortran/52608 Move the removal of initial zeros. 2012-03-17 19:19:49 +02:00
write.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00