g77: read/write file access
Eli Zaretskii
eliz@delorie.com
Tue Jan 9 00:26:00 GMT 2001
> Date: Mon, 08 Jan 2001 23:04:37 +0100
> From: Toon Moene <toon@moene.indiv.nluug.nl>
>
> Thomas Henlich wrote:
>
> > I noticed the following bug in g77 (gcc-2.95,2, DOS/djgpp and Windows
> > NT/mingw32 ports):
>
> Hmmmm, it does work correctly for me, on Debian GNU/Linux 2.2 (potato):
[snip]
> toon@laptop:~/g77-bugs$ ./a.out
> toon@laptop:~/g77-bugs$ cat tst.txt
> one
> 2
>
> which makes it quite plausible that the connection between libg2c (the
> Fortran run-time library) and the underlying OS is not functioning
> correctly.
>
> (Un)fortunately, I do not have access to ports to MS OS's, so I cannot
> find out why this is the case.
>
> 1/2 :-)
I do have access to MS OS's, but don't have the Fortran compiler
installed to dig into this ;-)
If someone can tell what C library functions are called by this
Fortran program to read/write the file, and in what order, I can at
least hypothesize about possible reasons for the problem on non-Unix
systems, and maybe even run some simple C test programs to see what's
going on.
More information about the Gcc-bugs
mailing list