.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
-.\"
+.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
-.\"
+.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
flushes changes made to the in-core copy of a file that was mapped
into memory using
.BR mmap (2)
-back to disk. Without use of this call
+back to disk.
+Without use of this call
there is no guarantee that changes are written back before
.BR munmap (2)
-is called. To be more precise, the part of the file that
+is called.
+To be more precise, the part of the file that
corresponds to the memory area starting at
.I start
and having length
.I length
-is updated.
+is updated.
The
.I flags
-argument may have the bits
-.BR MS_ASYNC ,
-.BR MS_SYNC ,
-and
+argument may have the bits
+.BR MS_ASYNC ,
+.BR MS_SYNC ,
+and
.B MS_INVALIDATE
-set, but not both
-.B MS_ASYNC
-and
+set, but not both
+.B MS_ASYNC
+and
.BR MS_SYNC .
-.B MS_ASYNC
+.B MS_ASYNC
specifies that an update be scheduled, but the call
returns immediately.
-.B MS_SYNC
+.B MS_SYNC
asks for an update and waits for it to complete.
-.B MS_INVALIDATE
+.B MS_INVALIDATE
asks to invalidate other mappings of the same file
(so that they can be updated with the fresh values just written).
.SH "RETURN VALUE"
-On success, zero is returned. On error, \-1 is returned, and
+On success, zero is returned.
+On error, \-1 is returned, and
.I errno
is set appropriately.
.SH ERRORS
.TP
.BR EBUSY
-MS_INVALIDATE was specified in
-.IR flags ,
+MS_INVALIDATE was specified in
+.IR flags ,
and a memory lock exists for the specified address range.
.TP
.BR EINVAL
is not a multiple of PAGESIZE; or any bit other than
MS_ASYNC | MS_INVALIDATE | MS_SYNC is set in
.IR flags ;
-or both
+or both
MS_SYNC and MS_ASYNC are set in
.IR flags .
.TP