Deleted Added
full compact
msync.2 (21907) msync.2 (23660)
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 15 unchanged lines hidden (view full) ---

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 15 unchanged lines hidden (view full) ---

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)msync.2 8.1 (Berkeley) 6/9/93
32.\" @(#)msync.2 8.2 (Berkeley) 6/21/94
33.\"
33.\"
34.Dd June 9, 1993
34.Dd June 21, 1994
35.Dt MSYNC 2
36.Os
37.Sh NAME
38.Nm msync
39.Nd synchronize a mapped region
40.Sh SYNOPSIS
41.Fd #include <sys/types.h>
42.Fd #include <sys/mman.h>

--- 35 unchanged lines hidden (view full) ---

78.Fa addr
79is not a multiple of the hardware page size.
80.It Bq Er EINVAL
81.Fa len
82is too large or negative.
83.It Bq Er EINVAL
84.Fa flags
85was both MS_ASYNC and MS_INVALIDATE. Only one of these flags is allowed.
35.Dt MSYNC 2
36.Os
37.Sh NAME
38.Nm msync
39.Nd synchronize a mapped region
40.Sh SYNOPSIS
41.Fd #include <sys/types.h>
42.Fd #include <sys/mman.h>

--- 35 unchanged lines hidden (view full) ---

78.Fa addr
79is not a multiple of the hardware page size.
80.It Bq Er EINVAL
81.Fa len
82is too large or negative.
83.It Bq Er EINVAL
84.Fa flags
85was both MS_ASYNC and MS_INVALIDATE. Only one of these flags is allowed.
86.It Bq Er EIO
87An I/O error occured while writing to the file system.
86.Sh SEE ALSO
87.Xr madvise 2 ,
88.Xr mincore 2 ,
89.Xr mprotect 2 ,
90.Xr munmap 2
91.Sh HISTORY
92The
93.Fn msync
94function first appeared in
95.Bx 4.4 .
88.Sh SEE ALSO
89.Xr madvise 2 ,
90.Xr mincore 2 ,
91.Xr mprotect 2 ,
92.Xr munmap 2
93.Sh HISTORY
94The
95.Fn msync
96function first appeared in
97.Bx 4.4 .