>>highest byte written in the file.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
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
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:
http://www.catb.org/~esr/faqs/smart-questions.html