sync(2) versus sync(8)
Jeff Beadles;685-2568;;;quark
jeff at quark.WV.TEK.COM
Tue Jul 3 13:31:14 AEST 1990
swfc at ulysses.att.com (Shu-Wie F Chen) writes:
[...]
>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.
In most (if not all) of the implimentations of sync(8) that I've seen, they
could be written as a one-liner:
main() {sync(); exit(0);}
They just call sync(2) and return a zero exit code.
-Jeff
--
Jeff Beadles jeff at quark.WV.TEK.COM
Utek Engineering, Tektronix Inc. +1 503 685 2568
SPEEA - Just say no.
More information about the Comp.unix.questions
mailing list