sync - Updates all file systems
void sync (void);
Interfaces documented on this reference page conform to industry standards
Refer to the standards(5) reference page for more information about indus-
try standards and associated tags.
The sync() function causes all information in memory that should be on disk
to be written out. The writing, although scheduled, is not necessarily com-
plete upon return from the sync() function. Types of information to be
written include modified superblocks, inodes, data blocks, and indirect
The sync() function should be used by programs that examine a file system,
such as the df command and the fsck command.