.TH SYNC 2 .UC 4 .SH NAME sync \- commit buffer cache to disk. .SH SYNOPSIS .nf .B #include .B int sync(void); .fi .SH DESCRIPTION .B sync() first commits inodes to buffers, and then buffers to disk. It always returns 0. .SH FILES linux/fs/buffer.c .br /usr/include/linux/sys.h .br /usr/include/unistd.h