[perl #64772] allow for sync on read only handles
authorTony Cook <tony@develop-help.com>
Sat, 2 Jun 2012 02:15:21 +0000 (12:15 +1000)
committerTony Cook <tony@develop-help.com>
Sat, 2 Jun 2012 02:15:21 +0000 (12:15 +1000)
This is useful on Linux for when you open a directory with open() and
then sync the directory eg, after a rename.

Tested on Linux, NetBSD, Solaris, Haiku-OS, Darwin, cygwin.

Tests are skipped on VMS (where I have no idea if it will work), Win32
(for which opening directories requires special permissions).


Trivial merge