fstat returns wrong filesize

Nick Burrett nick at dsvr.net
Sat Aug 17 03:59:12 PDT 2002


Alex Waugh wrote:
> Hi
> 
> Calling fstat often results in a wrong value being returned for the
> filesize. This is because OS_File which is used to get the file info
> returns the size allocated to the file, which (if the file is open at
> the time) can be different to the extent of the file.
> The following patch fixes this.

Thanks.  Committed.

Nick.




-- 
Nick Burrett
Development Manager, Designer Servers Ltd.   http://www.dsvr.co.uk




More information about the gcc mailing list