This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libfortran] PR44931 For INPUT_UNIT, INQUIRE NAME= should not return "stdin"
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 29 Jul 2010 07:21:30 -0700
- Subject: Re: [patch, libfortran] PR44931 For INPUT_UNIT, INQUIRE NAME= should not return "stdin"
- References: <4C4B8BA3.2070202@verizon.net>
On Sat, Jul 24, 2010 at 5:56 PM, Jerry DeLisle <jvdelisle@verizon.net> wrote:
> Hi Folks,
>
> The attach patch uses ttyname to return the device file name for inquire by
> unit.
>
> Regression tested on x86-64.
>
> Test case attached, but the reulst are system dependent so I will not add it
> to the testsuite.
>
> OK for trunk?
>
> Regards,
>
> Jerry
>
> 2010-07-24 ?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.
>
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45131
--
H.J.