*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> sync (2)              



NAME    [Toc]    [Back]

       sync - Update all file systems

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       void sync(
               void );

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       sync(): XSH4.2, XSH5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

DESCRIPTION    [Toc]    [Back]

       The  sync() function causes all information in memory that
       should be on disk to be written out. The writing, although
       scheduled,  is  not  necessarily complete upon return from
       the sync() function. Types of information  to  be  written
       include  modified  superblocks,  inodes,  data blocks, and
       indirect blocks.

       The sync() function should be used by programs that  examine
 a file system, such as the df and fsck commands.

SEE ALSO    [Toc]    [Back]

       Commands: sync(8)

       Functions: fsync(2)

       Standards: standards(5)

[ Back ]
 Similar pages
Name OS Title
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
updatedb Linux update a file name database
pw_setprefix NetBSD passwd file update functions
rpc.yppasswdd OpenBSD YP update password file daemon
pw_abort OpenBSD passwd file update functions
pw_mkdb NetBSD passwd file update functions
pw_getprefix NetBSD passwd file update functions
pw_lock OpenBSD passwd file update functions
udpublickey HP-UX update the publickey database file and the NIS map
pw_mkdb OpenBSD passwd file update functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service