SPUG: $fd->sync on Win32

Stuart Poulin stuart_poulin at yahoo.com
Thu May 13 15:14:04 CDT 2004

Hi Folks, 
I need to write some benchmark tools that will test various drive access to local disks, network shares, etc. on Windows and Unix.
One part is to test fsync timing:
for ($j=0; $j<NNNN; $j++){
  unless ($fd->syswrite($buffer, MAXBUF)){
   die "Unable to write $ARGV[0] : $!";
$fd->sync Works fine on Unix but isn't implemented on Win32. $fd->sync is really what I want in this case and not $fd->flush.
Other than using cygwin.dll - anybody have an idea for Win32?

Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/spug-list/attachments/20040513/077fdf1a/attachment.htm

More information about the spug-list mailing list