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

COLLOT Jean-Yves jean-yves.collot at cofiroute.fr
Wed Sep 29 11:08:12 GMT 2004


You are perfectly right. I must admit that I was not aware of that.

I replaced my Close/open by a call to fsync(), and it works fine.

Thanks a lot.

JYC

-----Message d'origine-----
De : Brodie, R (Richard) [mailto:R.Brodie at rl.ac.uk] 
Envoyé : mercredi 29 septembre 2004 12:29
À : 'samba-vms at lists.samba.org'
Objet : RE: WinXP -> OpenVMS tests reproduced using C++ test pro

>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.

Richard Brodie

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


More information about the samba-vms mailing list