[Bug fortran/44931] For INPUT_UNIT, INQUIRE NAME= should not return "stdin"
jvdelisle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 29 01:32:00 GMT 2010
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2010-07-29 01:32 -------
Subject: Bug 44931
Author: jvdelisle
Date: Thu Jul 29 01:32:23 2010
New Revision: 162667
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162667
Log:
2010-07-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/44931
* io/inquire.c (inquire_via_unit): Use ttyname to return actual device
file name for stdin, stdout, and stderr. If ttyname does not succeed
fall back to default names for these units. Include string.h to allow
using strlen function.
* unix.c: Remove typedef of unix_stream structure, move to unix.h.
* unix.h: Add typedef of unix_stream structure so that it is
accessible to inquire.c.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/inquire.c
trunk/libgfortran/io/unix.c
trunk/libgfortran/io/unix.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44931
More information about the Gcc-bugs
mailing list