optional fdatasync - not available everywhere