Content-type: text/html Man page of sync

sync

Section: System Calls (2)
Updated: 5 Jul 1990
Index Return to Main Contents
 

NAME

sync - update super block  

SYNOPSIS

#include <unistd.h>

void sync(void);  

DESCRIPTION

The sync() function writes all information in memory that should be on disk, including modified super blocks, modified inodes, and delayed block I/O.

Unlike fsync(3C), which completes the writing before it returns, sync() schedules but does not necessarily complete the writing before returning.  

USAGE

The sync() function should be used by applications that examine a file system, such as fsck(1M), and df(1M), and is mandatory before rebooting.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard

 

SEE ALSO

df(1M), fsck(1M), fsync(3C), attributes(5), standards(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
USAGE
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:16 GMT, October 02, 2010