[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    sync(2) manual page Table of Contents

Name

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.

It should be used by programs that examine a file system, such as fsck(1M) , df(1M) , etc. It is mandatory before a re-boot.

The writing, although scheduled, is not necessarily completed before sync() returns. The fsync function completes the writing before it returns.

See Also

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


Table of Contents