joyent/libuv — pull request #499 by indutny (2012-07-21 08:51:33+00:00)
Title: fs: fix warning on OSX

OSX has no public API for fdatasync. And as pointed in `man fsync(2)`:

For applications that require tighter guarantees about the integrity of
their data, Mac OS X provides the F_FULLFSYNC fcntl. The F_FULLFSYNC
fcntl asks the drive to flush all buffered data to permanent storage.
Applications, such as databases, that require a strict ordering of writes
should use F_FULLFSYNC to ensure that their data is written in the order
they expect. Please see fcntl(2) for more detail.