Schedules file system updates.
#include <unistd.h> void sync ( void );
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.