spelling
[unix-history] / usr / src / lib / libc / sys / sync.2
CommitLineData
5f440b1e
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
eff6446c 5.\" @(#)sync.2 6.2 (Berkeley) %G%
5f440b1e 6.\"
b7bb0a6a 7.TH SYNC 2 ""
5f440b1e
KM
8.UC 4
9.SH NAME
10sync \- update super-block
11.SH SYNOPSIS
12.B sync()
13.SH DESCRIPTION
14.I Sync
15causes all information in core
16memory that should be on disk to be written out.
17This includes modified super blocks,
18modified i-nodes, and delayed block I/O.
19.PP
0175ba9c 20.I Sync
eff6446c 21should be used by programs that examine a file system,
5f440b1e 22for example
0175ba9c 23.I "fsck, df,"
5f440b1e 24etc.
0175ba9c
KM
25.I Sync
26is mandatory before a boot.
5f440b1e 27.SH "SEE ALSO"
0175ba9c 28fsync(2), sync(8), update(8)
5f440b1e
KM
29.SH BUGS
30The writing, although scheduled, is not necessarily
31complete upon return from
32.IR sync .