]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/44931 (For INPUT_UNIT, INQUIRE NAME= should not return "stdin")
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 29 Jul 2010 01:32:23 +0000 (01:32 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 29 Jul 2010 01:32:23 +0000 (01:32 +0000)
commit01b9977477971a04c95488e489999bc3d4b43bb3
treeed3790f513f08394de93694eb89a85e8e02d5c8c
parentfb1341901a435aa26ef846612f9dc98c45d8403f
re PR fortran/44931 (For INPUT_UNIT, INQUIRE NAME= should not return "stdin")

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.

From-SVN: r162667
libgfortran/ChangeLog
libgfortran/io/inquire.c
libgfortran/io/unix.c
libgfortran/io/unix.h