xref: /original-bsd/lib/libc/sys/munmap.2 (revision 3705696b)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)munmap.2	8.1 (Berkeley) 06/09/93
7.\"
8.Dd
9.Dt MUNMAP 2
10.Os
11.Sh NAME
12.Nm munmap
13.Nd remove a mapping
14.Sh SYNOPSIS
15.Fn munmap "caddr_t addr" "size_t len"
16.Sh DESCRIPTION
17The
18.Fn munmap
19system call
20deletes the mappings for the specified address range,
21and causes further references to addresses within the range
22to generate invalid memory references.
23.Sh SEE ALSO
24.Xr msync 2 ,
25.Xr madvise 2 ,
26.Xr mprotect 2 ,
27.Xr mincore 2
28.Sh HISTORY
29The
30.Fn munmap
31function first appeared in 4.4BSD.
32