This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: binary/unformatted stdin


2010/4/7 Tobias Burnus <burnus@net-b.de>:
> On 04/07/2010 09:02 AM, Arjen Markus wrote:
>> Isn't the magic name under Windows "con" ? (It was in the oldish days)
>
> The GCC 4.5 release notes have ( http://gcc.gnu.org/gcc-4.5/changes.html ):
> "For legacy compatibiliy: On Cygwin and MinGW, the special files
> |CONOUT$| and |CONIN$| (and |CONERR$| which maps to |CONOUT$|) are now
> supported."
> (Though the notes do not tell what to use otherwise.)
>
> If one looks at the source code (libgfortran/io/unix.c) one sees that
> for MinGW that one indeed opens CONOUT$ while on Cygwin one opens
> /dev/conout. Thus, with GCC 4.5 (or 4.6 ;-) you can try CONOUT$ on
> Windows; for GCC 4.3/4.4 using CONOUT$ or /dev/conout might work.
>

Yes, "conin$" as the file name does do the trick. access = 'stream' is
most probably
the way forward, as "unformatted' requires the proper record structure.

Regards,

Arjen


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]