DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sync(S)


sync -- update super block

Synopsis

   #include <unistd.h>
   

void sync(void);

Description

sync causes all information in memory that should be on disk to be written out. This includes modified super blocks, modified i-nodes, and delayed block I/O.

The writing, although scheduled, is not necessarily completed before sync returns. The fsync system call completes the writing before it returns.

Usage

sync should be used by programs that examine a file system, such as fsck(ADM), df(ADM), and so on. It is mandatory before a re-boot.

References

fsync(S)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005