Opentopia Directory Encyclopedia Tools

Sync (Unix)

Encyclopedia : S : SY : SYN : Sync (Unix)



 

The correct title of this } is }}}. The initial letter is capitalized due to [Naming conventions #Lower case first lettertechnical restrictions].
sync is a standard system call in the Unix operating system, which commits to disk all data in the kernel filesystem buffers, i.e. data which has been scheduled for writing via low-level I/O system calls. Note that higher-level I/O layers such as stdio may maintain separate buffers of their own.

As a function in C, the sync() call is typically declared as void sync(void) in . The system call is also available via a command line utility also called sync, and similarly named functions in other languages such as Perl and Python.

The related system call fsync commits just the buffered data relating to a specified file descriptor.

Unix systems typically run some kind of flush or update daemon, which calls the sync function on a regular basis. Buffers are also flushed when filesystems are unmounted, for example prior to system shutdown.

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: