April 11, 2021, 10:09:10 AM

News : LinuxSolved.com Linux Help Community Forum..

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

Offline power

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

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.