Re: [hatari-devel] Fwrite warnings

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 27.10.2022 1.38, Roger Burrows wrote:
On 27 Oct 2022 at 0:39, Eero Tamminen wrote:
On 26.10.2022 15.16, Uwe Seimet wrote:
with the latest sources I get tons of warnings when, for instance, I
compile
with Pure C. I have never seen these warnings before.

WARN : GEMDOS Fwrite() to 'ROOT.O' file, opened as read-only

This is from following commit:
https://git.tuxfamily.org/hatari/hatari.git/commit/?id=799020b84d0224a4bb38f2b
892a8ecdd1c11bcc1

Since Atari TOS allows writes to files opened as read-only, I'm not sure what
the purpose of this warning is, particularly if it clutteres up the console.

Until very recently, Hatari GEMDOS HD has opened host files as read-only, when TOS program asks for that in Fopen().

=> programs Fopen()ing files as read-only when they intend to write to them, seems exceedingly rare, as I have never encountered problems with that (and I've tested huge amount of programs).

Read-only Fcreate() calls GEMDOS HD has opened Fcreate() files as writable since 2009, but it chmod()s the file as read-only so that writes for successive opens would not have succeeded (without Fattrib() before them).


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/