X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/34d340d711a2b033f5da480ed7b5eb147679a588..b58caf92d598c70ddd398b3909b0a2b8b5a110e1:/sync.tproj/sync.8 diff --git a/sync.tproj/sync.8 b/sync.tproj/sync.8 index 6d39ad0..fc733b8 100644 --- a/sync.tproj/sync.8 +++ b/sync.tproj/sync.8 @@ -1,3 +1,4 @@ +.\"- .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -9,10 +10,6 @@ .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. @@ -30,44 +27,42 @@ .\" SUCH DAMAGE. .\" .\" @(#)sync.8 8.1 (Berkeley) 5/31/93 +.\" $FreeBSD: src/bin/sync/sync.8,v 1.16 2005/01/10 08:39:26 imp Exp $ .\" .Dd May 31, 1993 .Dt SYNC 8 -.Os BSD 4 +.Os .Sh NAME .Nm sync .Nd force completion of pending disk writes (flush cache) .Sh SYNOPSIS -.Nm sync +.Nm .Sh DESCRIPTION -.Nm Sync -can be called to insure that all disk writes have been completed before the +The +.Nm +utility +can be called to ensure that all disk writes have been completed before the processor is halted in a way not suitably done by -.Xr reboot 8 -or -.Xr halt 8 . +.Xr shutdown 8 . Generally, it is preferable to use -.Xr reboot -or -.Xr halt +.Xr shutdown 8 to shut down the system, as they may perform additional actions such as resynchronizing the hardware clock and flushing internal caches before performing a final -.Nm sync . +.Nm . .Pp -.Nm Sync -utilizes the +The +.Nm +utility utilizes the .Xr sync 2 function call. .Sh SEE ALSO .Xr fsync 2 , .Xr sync 2 , -.Xr halt 8 , -.Xr reboot 8 , -.Xr update 8 +.Xr shutdown 8 .Sh HISTORY A -.Nm sync -command appeared in -.At v6 . +.Nm +utility appeared in +.At v4 .