doprnt.o is needed only on vax (need better way than this)
[unix-history] / usr / src / bin / sync / sync.8
CommitLineData
a15750af
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.\"
b4cfb2d9 5.\" @(#)sync.8 6.2 (Berkeley) %G%
a15750af 6.\"
d7550e53 7.TH SYNC 8 ""
a15750af
KM
8.UC 4
9.SH NAME
10sync \- update the super block
11.SH SYNOPSIS
a1d5ddf3 12.B /etc/sync
a15750af
KM
13.SH DESCRIPTION
14.I Sync
15executes the
16.I sync
17system primitive.
18.I Sync
b4cfb2d9 19can be called to insure that all disk writes have been completed before the
a15750af
KM
20processor is halted in a way not suitably done by
21.IR reboot (8)
22or
23.IR halt (8).
b4cfb2d9
MK
24Generally, it is preferable to use
25.I reboot
26or
27.I halt
28to shut down the system,
29as they may perform additional actions
30such as resynchronizing the hardware clock
31and flushing internal caches before performing a final
32.IR sync .
a15750af
KM
33.PP
34See
35.IR sync (2)
36for details on the system primitive.
37.SH "SEE ALSO"
a1d5ddf3 38sync(2), fsync(2), halt(8), reboot(8), update(8)