re PR libfortran/19052 (unit 0 not preconnected to standard error)
authorDavid Edelsohn <edelsohn@gnu.org>
Sun, 23 Jan 2005 00:14:31 +0000 (00:14 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 23 Jan 2005 00:14:31 +0000 (19:14 -0500)
commitfbac336391e238f8e92714fce5431f69d4f2d338
tree58334819ab2857c14b05d08b9782ac195c0413b5
parenta059cdb8632f1a0a64d0ae2b4ada084ab69cac5e
re PR libfortran/19052 (unit 0 not preconnected to standard error)

        PR libgfortran/19052
        * libgfortran.h (options_t): Add stderr_unit.
        * io/io.h (error_stream): Declare.
        * io/open.c (new_unit): Do not terminate abnormally if opening
        file preconnected to stdin, stdout, or stderr.
        * io/unit.c (init_units): Initialize stderr_unit.
        * io/unix.c (error_stream): New function.
        * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.

From-SVN: r94090
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/open.c
libgfortran/io/unit.c
libgfortran/io/unix.c
libgfortran/libgfortran.h
libgfortran/runtime/environ.c