Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
&pagelevel(4)&pagelevel
Syntax | #include <unistd.h> void sync(void); |
Description | sync() causes all information in memory that updates file systems to be scheduled for writing out to all file systems. This includes modified superblocks, modified inodes and delayed block-special I/O files.
sync() should be used by programs which check a file system, for example fsck() or df() . sync() is mandatory before a new system is loaded.
When sync() returns, the writing is not necessarily finished. The system call fsync() finishes writing before it returns. |
Return val. | The function does not return any values. |
See also | fsync() , unistd.h .
|