SYNC(2) — HP-UX
NAME
sync − update super-block
SYNOPSIS
void sync ( )
DESCRIPTION
Sync causes all information in memory that should be on disk to be written out. This includes modified super blocks, modified inodes, and delayed block I/O.
It should be used by programs which examine a file system, for example fsck, df, etc. It is mandatory before a shutdown.
The writing, although scheduled, is not necessarily complete upon return from sync.
In some HP-UX systems, sync may be reduced to a no-op. This is permissible on a system which does not cache buffers, or in a system that in some way ensures that the disks are always in a consistent state.
SEE ALSO
Hewlett-Packard Company — Version B.1, May 11, 2021