Deleted Added
full compact
munmap.2 (21907) munmap.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.\" @(#)munmap.2 8.2 (Berkeley) 4/15/94
32.\" @(#)munmap.2 8.3 (Berkeley) 5/27/94
33.\"
33.\"
34.Dd April 15, 1994
34.Dd May 27, 1994
35.Dt MUNMAP 2
36.Os
37.Sh NAME
38.Nm munmap
39.Nd remove a mapping
40.Sh SYNOPSIS
41.Fd #include <sys/types.h>
42.Fd #include <sys/mman.h>

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

61will fail if:
62.Bl -tag -width Er
63.It Bq Er EINVAL
64The
65.Fa addr
66parameter was not page aligned, the
67.Fa len
68parameter was negative, or
35.Dt MUNMAP 2
36.Os
37.Sh NAME
38.Nm munmap
39.Nd remove a mapping
40.Sh SYNOPSIS
41.Fd #include <sys/types.h>
42.Fd #include <sys/mman.h>

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

61will fail if:
62.Bl -tag -width Er
63.It Bq Er EINVAL
64The
65.Fa addr
66parameter was not page aligned, the
67.Fa len
68parameter was negative, or
69some part of the region being unmapped is not part of the currently
70valid address space.
69some part of the region being unmapped is outside the
70valid address range for a process.
71.Sh "SEE ALSO"
72.Xr madvise 2 ,
73.Xr mincore 2 ,
74.Xr mprotect 2 ,
75.Xr msync 2 ,
76.Xr munmap 2 ,
77.Xr getpagesize 3
78.Sh HISTORY
79The
80.Fn munmap
81function first appeared in
82.Bx 4.4 .
71.Sh "SEE ALSO"
72.Xr madvise 2 ,
73.Xr mincore 2 ,
74.Xr mprotect 2 ,
75.Xr msync 2 ,
76.Xr munmap 2 ,
77.Xr getpagesize 3
78.Sh HISTORY
79The
80.Fn munmap
81function first appeared in
82.Bx 4.4 .