Table of Contentssync - commit buffer cache to disk. #include <unistd.h> int sync(void);
sync first commits inodes to buffers, and then buffers to disk. sync always returns 0. SVID, AT&T, X/OPEN, BSD 4.3 sync() only schedules the writes, so it may return before the actual writing is done. fsync(2), update(8), sync(8)
Table of Contents
www.fiveanddime.net