Manual Page Result
0
Command: sync | Section: 2 | Source: Digital UNIX | File: sync.2.gz
sync(2) System Calls Manual sync(2)
NAME
sync - Updates all file systems
SYNOPSIS
#include <unistd.h>
void sync (void);
STANDARDS
Interfaces documented on this reference page conform to industry stan-
dards as follows:
sync(): XPG4-UNIX
Refer to the standards(5) reference page for more information about in-
dustry standards and associated tags.
DESCRIPTION
The sync() function causes all information in memory that should be on
disk to be written out. The writing, although scheduled, is not neces-
sarily complete upon return from the sync() function. Types of infor-
mation to be written include modified superblocks, inodes, data blocks,
and indirect blocks.
The sync() function should be used by programs that examine a file sys-
tem, such as the df command and the fsck command.
RELATED INFORMATION
Functions: fsync(2)
Commands: sync(8)
Standards: standards(5) delim off
sync(2)