Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Callssync(2)


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.

SEE ALSO

 

df(1M), fsck(1M), fsync(3C)


SunOS 5.9Go To TopLast Changed 5 Jul 1990

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.