Copyright (C) 2000-2012 |
Manpages SYNCSection: Linux Programmer's Manual (2)Updated: 1995-04-15 Index Return to Main Contents NAMEsync - commit buffer cache to disk.SYNOPSIS#include <unistd.h>DESCRIPTIONsync first commits inodes to buffers, and then buffers to disk.RETURN VALUEsync always returns 0.CONFORMING TOSVr4, SVID, X/OPEN, BSD 4.3BUGSAccording to the standard specification (e.g., SVID), sync() schedules the writes, but may return before the actual writing is done. However, since version 1.3.20 Linux does actually wait. (This still does not guarantee data integrity: modern disks have large caches.)SEE ALSObdflush(2), fsync(2), fdatasync(2), update(8), sync(8)
IndexThis document was created by man2html, using the manual pages. Time: 22:47:43 GMT, December 09, 2024 |