'\" te .\" Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved .TH sync 2 "5 Jul 1990" "SunOS 5.11" "System Calls" .SH NAME sync \- update super block .SH SYNOPSIS .LP .nf #include \fBvoid\fR \fBsync\fR(\fBvoid\fR); .fi .SH DESCRIPTION .sp .LP The \fBsync()\fR function writes all information in memory that should be on disk, including modified super blocks, modified inodes, and delayed block I/O. .sp .LP Unlike \fBfsync\fR(3C), which completes the writing before it returns, \fBsync()\fR schedules but does not necessarily complete the writing before returning. .SH USAGE .sp .LP The \fBsync()\fR function should be used by applications that examine a file system, such as \fBfsck\fR(1M), and \fBdf\fR(1M), and is mandatory before rebooting. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ StandardSee \fBstandards\fR(5). .TE .SH SEE ALSO .sp .LP \fBdf\fR(1M), \fBfsck\fR(1M), \fBfsync\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)