Files
oldlinux-files/Linux-0.98/Yggdrasil-0.98.3/usr/man/man2/sync.2
2024-02-19 00:21:16 -05:00

20 lines
317 B
Groff

.TH SYNC 2
.UC 4
.SH NAME
sync \- commit buffer cache to disk.
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.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