Please check the manual page fsync(2).