Deleted Added
full compact
sync.2 (50476) sync.2 (57686)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)sync.2 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)sync.2 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/sys/sync.2 50476 1999-08-28 00:22:10Z peter $
33.\" $FreeBSD: head/lib/libc/sys/sync.2 57686 2000-03-02 09:14:21Z sheldonh $
34.\"
35.Dd June 4, 1993
36.Dt SYNC 2
37.Os BSD 4
38.Sh NAME
39.Nm sync
40.Nd "synchronize disk block in-core status with that on disk"
41.Sh SYNOPSIS
42.Fd #include <unistd.h>
43.Ft void
44.Fn sync void
45.Sh DESCRIPTION
46The
47.Fn sync
48function forces a write of dirty (modified) buffers
49in the block buffer cache out
34.\"
35.Dd June 4, 1993
36.Dt SYNC 2
37.Os BSD 4
38.Sh NAME
39.Nm sync
40.Nd "synchronize disk block in-core status with that on disk"
41.Sh SYNOPSIS
42.Fd #include <unistd.h>
43.Ft void
44.Fn sync void
45.Sh DESCRIPTION
46The
47.Fn sync
48function forces a write of dirty (modified) buffers
49in the block buffer cache out
50to disk. The kernel keeps this information in core to reduce
50to disk.
51The kernel keeps this information in core to reduce
51the number of disk I/O transfers required by the system.
52As information in the cache is lost after a system crash a
53.Fn sync
54call is issued
55frequently
56by the user process
57.Xr update 4
58(about every 30 seconds).

--- 17 unchanged lines hidden ---
52the number of disk I/O transfers required by the system.
53As information in the cache is lost after a system crash a
54.Fn sync
55call is issued
56frequently
57by the user process
58.Xr update 4
59(about every 30 seconds).

--- 17 unchanged lines hidden ---