sync

Schedules file system updates.

Library:LibC
Classification:POSIX
Service:File and Directory I/O

Syntax

  #include <unistd.h> 
   
  void  sync ( void );
  

Remarks

The sync function causes all file system updates that are in memory to be scheduled for writing to the file system. The return from sync indicates that the writing has been scheduled, not that the writing has finished.

See Also