msync.2 (108028) | msync.2 (108087) |
---|---|
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. --- 16 unchanged lines hidden (view full) --- 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.2 (Berkeley) 6/21/94 | 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. --- 16 unchanged lines hidden (view full) --- 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.2 (Berkeley) 6/21/94 |
33.\" $FreeBSD: head/lib/libc/sys/msync.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/msync.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd June 21, 1994 36.Dt MSYNC 2 37.Os 38.Sh NAME 39.Nm msync 40.Nd synchronize a mapped region 41.Sh LIBRARY --- 32 unchanged lines hidden (view full) --- 74.Rv -std msync 75.Sh ERRORS 76The 77.Fn msync 78system call 79will fail if: 80.Bl -tag -width Er 81.It Bq Er EINVAL | 34.\" 35.Dd June 21, 1994 36.Dt MSYNC 2 37.Os 38.Sh NAME 39.Nm msync 40.Nd synchronize a mapped region 41.Sh LIBRARY --- 32 unchanged lines hidden (view full) --- 74.Rv -std msync 75.Sh ERRORS 76The 77.Fn msync 78system call 79will fail if: 80.Bl -tag -width Er 81.It Bq Er EINVAL |
82The |
|
82.Fa addr | 83.Fa addr |
84argument |
|
83is not a multiple of the hardware page size. 84.It Bq Er EINVAL | 85is not a multiple of the hardware page size. 86.It Bq Er EINVAL |
87The |
|
85.Fa len | 88.Fa len |
89argument |
|
86is too large or negative. 87.It Bq Er EINVAL | 90is too large or negative. 91.It Bq Er EINVAL |
92The |
|
88.Fa flags | 93.Fa flags |
94argument |
|
89was both MS_ASYNC and MS_INVALIDATE. 90Only one of these flags is allowed. 91.It Bq Er EIO 92An I/O error occurred while writing to the file system. 93.El 94.Sh SEE ALSO 95.Xr madvise 2 , 96.Xr mincore 2 , 97.Xr mprotect 2 , 98.Xr munmap 2 99.Sh HISTORY 100The 101.Fn msync 102system call first appeared in 103.Bx 4.4 . | 95was both MS_ASYNC and MS_INVALIDATE. 96Only one of these flags is allowed. 97.It Bq Er EIO 98An I/O error occurred while writing to the file system. 99.El 100.Sh SEE ALSO 101.Xr madvise 2 , 102.Xr mincore 2 , 103.Xr mprotect 2 , 104.Xr munmap 2 105.Sh HISTORY 106The 107.Fn msync 108system call first appeared in 109.Bx 4.4 . |