On 13 Mar 2000, at 11:45, Eli Zaretskii wrote:

> If the actual file only has 100 bytes, why is this incorrect?

How do you know the actual file only has 100 bytes?  As you suggested, the 
file might grow between the stat call (that sizes the buffer) and the read 
call.


> >  Or are you saying that returning "-1" is in error?
> 
> That, too.  It should return what it read and set errno (IMHO).

Fair point.  I'll certainly bring that to Cygnus' attention.

                                      -- Dave Bryan

Reply via email to