sync.2: Some rewrites to description of sync()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2011-09-08 01:59:14 +02:00
parent e440702e74
commit bedbb5335d
1 changed files with 8 additions and 3 deletions

View File

@ -53,13 +53,18 @@ _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
.ad
.SH DESCRIPTION
.BR sync ()
first commits inodes to buffers, and then buffers to disk.
causes all buffered modifications to file metadata and data to be
written to the underlying file systems.
.SH ERRORS
This function is always successful.
.BR sync ()
is always successful.
.SH "CONFORMING TO"
.BR sync ():
SVr4, 4.3BSD, POSIX.1-2001.
.SH NOTES
Since glibc 2.2.2 the Linux prototype is as listed above,
Since glibc 2.2.2 the Linux prototype for
.BR sync ()
is as listed above,
following the various standards.
In libc4, libc5, and glibc up to 2.2.1
it was "int sync(void)", and