WinXP -> OpenVMS tests reproduced using C++ test pro

John E. Malmberg wb8tyw at qsl.net
Wed Sep 29 11:18:24 GMT 2004


Brodie, R (Richard) wrote:
>>The stat() or fstat() functions should return the correct results of the
>>real size of the file.  In the standard fields, they should have the
 >>highest byte written in the file.
> 
> The CRTL manual notes:
> 
> 'be aware that for st_size to report a correct value, you need to flush
> both the C RTL and RMS buffers'.
> 
> fflush()/ fsync() may be a mite quicker than fclose() / fopen() I suppose. 

Yes, and if this is backed up by the UNIX standard, means that the UNIX 
variants of SAMBA are possibly depending on an implementation quirk than 
by required behavior.

Still if OpenVMS is the only one that is not behaving this way, it may 
be good to bring it into compliance with UNIX.

-John



More information about the samba-vms mailing list