Mail Archives: djgpp-workers/2002/06/02/10:16:25
Hello.
Eli Zaretskii wrote:
>
> On Sun, 2 Jun 2002, Richard Dawe wrote:
>
> > When open and fopen are called to open & append to a file, they don't
> > check that llseek() is successful. I think they should fail, if the seek
> > was unsuccessful. Should this be fixed?
>
> When do we expect llseek to fail?
I don't expect it to fail. But if it did, we'd ignore it. I think it's better
not to ignore it.
> What happens with devices open in append mode?
I don't know.
Presumably you're thinking of devices where you only ever conceptually append
data - COM1:, CON:, etc. - where a seek is meaningless. I guess in those cases
we should make lseek, llseek return ESPIPE and then ignore that errno in open,
fopen.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -