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

  man pages->FreeBSD man pages -> sync (2)              
Title
Content
Arch
Section
 

SYNC(2)

Contents


NAME    [Toc]    [Back]

     sync -- schedule file system updates

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     void
     sync(void);

DESCRIPTION    [Toc]    [Back]

     The sync() system call forces a write of dirty (modified) buffers in the
     block buffer cache out to disk.  The kernel keeps this information in
     core to reduce the number of disk I/O transfers required by the system.
     As information in the cache is lost after a system crash, a sync() system
     call is issued frequently by the user process syncer(4) (about every 30
     seconds).

     The fsync(2) system call may be used to synchronize individual file
     descriptor attributes.

SEE ALSO    [Toc]    [Back]

      
      
     fsync(2), syncer(4), sync(8)

BUGS    [Toc]    [Back]

     The sync() system call may return before the buffers are completely
     flushed.

HISTORY    [Toc]    [Back]

     The sync() function appeared in Version 6 AT&T UNIX.


FreeBSD 5.2.1			 June 4, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
update Tru64 Periodically updates the file system
update-ux HP-UX updates the HP-UX operating system from new HP-UX media
autoupdate Linux updates an old configure.in file to version 2
autoupdate2.13 Linux updates an old configure.in file to version 2
touch Tru64 Updates file access and modification times
pw_file OpenBSD utility functions for interactive passwd file updates
pw_init OpenBSD utility functions for interactive passwd file updates
pw_error OpenBSD utility functions for interactive passwd file updates
pw_edit OpenBSD utility functions for interactive passwd file updates
pw_copy NetBSD utility functions for interactive passwd file updates
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service