Mail Archives: djgpp-workers/2003/01/23/08:40:56
Hello.
Martin Stromberg wrote:
>
> > Say you write the first part of the data, but then the write for the next
> > part fails. What do you return? The call has failed, but you have written
> > some
>
> No. It succeeded in writing the first part. You return the value of as
> many bytes you've written. (Just as write would do if it partially
> wrote something.)
If write partially writes something, it doesn't fail.
If the second write fails, how do you know how much data it has written? I
think you're saying: does it matter? I may be worrying too much, since code
should be written to cope with read/write not returning as much as was asked
to read/write.
I'm concerned about pipes. I'm not sure why - it's just a gut feeling.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -