sync(2) versus sync(8)

Thomas Tornblom TM/JU 99367 etxtorn at juno11.ericsson.se
Tue Jul 3 18:13:06 AEST 1990


In article <13278 at ulysses.att.com> swfc at ulysses.att.com (Shu-Wie F Chen) writes:
>According to the man page for fsync(2) on a Sun-4:
>
>...some description about fsync...
>
>Note: this is different than sync(8) which schedules disk I/O for all
>files (as though an fsync() had been done on all files) but returns
>before the I/O completes.
>
>...
>
>However, I can't find sync in section 8 of the man pages.  What does it
>actually do?  How does it differ from sync(2) which writes out all
>information in core memory that should be on disk.
>
>Thanks,
>*swfc

You'll find it in section (1) of the manual. And no, it doesn't differ, it is
merely sync(2) packaged into a program.

Thomas.



More information about the Comp.unix.questions mailing list