2 .\" Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SYNC 2 "Jul 5, 1990"
8 sync \- update super block
14 \fBvoid\fR \fBsync\fR(\fBvoid\fR);
20 The \fBsync()\fR function writes all information in memory that should be on
21 disk, including modified super blocks, modified inodes, and delayed block I/O.
24 Unlike \fBfsync\fR(3C), which completes the writing before it returns,
25 \fBsync()\fR schedules but does not necessarily complete the writing before
30 The \fBsync()\fR function should be used by applications that examine a file
31 system, such as \fBfsck\fR(1M), and \fBdf\fR(1M), and is mandatory before
36 See \fBattributes\fR(5) for descriptions of the following attributes:
44 ATTRIBUTE TYPE ATTRIBUTE VALUE
46 Interface Stability Standard
52 \fBdf\fR(1M), \fBfsck\fR(1M), \fBfsync\fR(3C), \fBattributes\fR(5),