`fdatasync()` is not supported (as such) on OS X. An alternative using `fcntl()` is detailed in [a picoc issue](https://code.google.com/p/picoc/issues/detail?id=145). We should provide the `fcntl()`-based alternative on OS X (and presumably iOS).