NAME | SYNOPSIS | FEATURES | DESCRIPTION | ATTRIBUTES | SEE ALSO | BUGS | HISTORY
#include <unistd.h>void sync(void);
MSDOSFS, NFS_CLIENT, UFS
The sync function forces a write of dirty (modified) buffers in the block buffer cache to disk. The kernel keeps this information in core to reduce the number of disk I/O transfers required by the system. As information in the cache is lost after a system crash, a sync call is issued frequently by the user process syncd(1M) (about every 10 seconds).
The fsync(2) function may be used to synchronize individual file descriptor attributes.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The sync call may return before the buffers are completely flushed.
This function call appeared in Version 6 AT&T UNIX.
NAME | SYNOPSIS | FEATURES | DESCRIPTION | ATTRIBUTES | SEE ALSO | BUGS | HISTORY