sync(2) DG/UX 5.4 Rel. 2.01 sync(2)
NAME
sync - synchronize disk and memory resident file system information
SYNOPSIS
#include <unistd.h>
void sync ()
DESCRIPTION
The sync system call causes file system information in memory to be
written to disk.
This call works only for the superuser. If a non-superuser makes the
call, it fails silently. (The kernel automatically writes file
system information to disk at MAXBUFAGE intervals.)
Activity may continue on the file system device while the sync is
being performed, but there is no guarantee that changes to files or
file system data occurring after sync starts will get written to
disk. Upon return from sync, there is no guarantee that all writes
to the disk have completed.
ACCESS CONTROL
None.
RETURN VALUE
None.
DIAGNOSTICS
None.
SEE ALSO
sync(1M), fsync(2).
Licensed material--property of copyright holder(s) 1