April 19, 2024, 08:22:02 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: fflush and fsync??  (Read 4099 times)

Offline power

  • New Member
  • Posts: 1
fflush and fsync??
« on: November 01, 2005, 08:35:26 AM »
Hello....

I want to ask a C programming question on Linux...

fflush and fsync both said to be putting the data in buffers to devices. But what is the differences between them??

In fact, I want to force my data in buffers (after calling fwrite) to be put to the harddisk, what functions should I call??

Thank you.

Danny.