SYNC
Section: System Calls (2)
Index
Return to Main Contents
BSD mandoc
BSD 4
NAME
sync
- synchronize disk block in-core status with that on disk
SYNOPSIS
Fd #include <unistd.h>
Ft void
Fn sync void
DESCRIPTION
The
Fn sync
function forces a write of dirty (modified) buffers
in the block buffer cache out
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
Fn sync
call is issued
frequently
by the user process
update(8)
(about every 30 seconds).
The function
fsync(2)
may be used to synchronize individual file descriptor
attributes.
SEE ALSO
fsync(2),
sync(8),
update(8)
BUGS
Fn Sync
may return before the buffers are completely flushed.
HISTORY
A
Fn sync
function call appeared in
AT&T System
v6 .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- BUGS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 19:41:54 GMT, December 25, 2022