Mail Archives: djgpp-workers/2000/09/15/07:23:06
> I think it would be good to pass the append bit to the fsext mechanism.
>
> Of course, open(filename, O_APPEND) should work like
> fopen(filename, "a"), so if you feel like implementing that, it would
> be nice; that's not so easy to do, though.
Ah. Is there a document somewhere that explains open() and O_APPEND
and the interactions with lseek() and company?
> Why would you want not to have the file pointer at the end of the
> file? But if you pass O_APPEND to open (to let fsext know about the
> append bit), it will seek to end anyway, so this really is redundant.
Why would I? It'll be fseek()ed when you try to fwrite() or fprintf()
to the stream...
Right,
MartinS
- Raw text -