sync - flush filesystem data to disk
Standard C Library (libc, -lc)
#include <unistd.h>
void
sync(void);
The sync function forces a write of all dirty filesystem buffers and dirty filesystem state to disk.
No value is returned, and sync does not fail.
None.