xref: /csrg-svn/lib/libc/sys/sync.2 (revision 20093)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)sync.2 5.1 (Berkeley) 05/09/85

SYNC 2 "12 February 1983"
C 4
NAME
sync - update super-block
SYNOPSIS
sync()
DESCRIPTION
Sync causes all information in core memory that should be on disk to be written out. This includes modified super blocks, modified i-nodes, and delayed block I/O.

Sync should be used by programs which examine a file system, for example "fsck, df," etc. Sync is mandatory before a boot.

"SEE ALSO"
fsync(2), sync(8), update(8)
BUGS
The writing, although scheduled, is not necessarily complete upon return from sync .