sync() on a read-only file handle doesn't work on cygwin either
authorTony Cook <tony@develop-help.com>
Tue, 17 Jul 2012 05:48:02 +0000 (15:48 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 17 Jul 2012 05:48:02 +0000 (15:48 +1000)
commit4d6399864e7a82ac32047d65a43a064193e46846
treea47072856dfd65898b7aafa3802b0b0093dc7616
parent16e4fcbf9950072fae8d7d2f3f58b77db825ee71
sync() on a read-only file handle doesn't work on cygwin either

Cygwin fsync() is implemented in terms of the Win32 FlushFileBuffers()
API which requires GENERIC_WRITE access.
dist/IO/t/io_xs.t