up | Inhaltsverzeichniss | Kommentar

Manual page for sync(2)

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


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97