November 22, 2024, 09:04:38 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: fflush and fsync??  (Read 6295 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.