Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!zephyr.ens.tek.com!orca.wv.tek.com!quark!jeff From: jeff@quark.WV.TEK.COM (Jeff Beadles;685-2568;;;quark) Newsgroups: comp.unix.questions Subject: Re: sync(2) versus sync(8) Message-ID: <7582@orca.wv.tek.com> Date: 3 Jul 90 03:31:14 GMT References: <13278@ulysses.att.com> Sender: news@orca.wv.tek.com Reply-To: jeff@quark.WV.TEK.COM (Jeff Beadles) Organization: Tektronix, Inc., Wilsonville, OR Lines: 21 swfc@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@quark.WV.TEK.COM Utek Engineering, Tektronix Inc. +1 503 685 2568 SPEEA - Just say no.