HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)

m
munmap(2) munmap(2)
HP-UX EXTENSIONS
SYNOPSIS
int munmap(caddr_t addr, size_t len);
DESCRIPTION
munmap() unmaps a mapped file or anonymous memory region.
If the address range specified by addr and len was not created by a successful call to
mmap(), munmap()
returns an error.
If the specified address range was created by multiple calls to
mmap(), munmap() succeeds in unmap-
ping all of the specified regions, provided they form a contiguous address range.
If the region was created with the
MAP_PRIVATE option, any modifications made to the region are dis-
carded.
ERRORS
[EINVAL] addr is not a multiple of the page size as returned by
sysconf(_SC_PAGE_SIZE)
.
[EINVAL] The address range specified by addr and len was not created by a successful call to
mmap().
AUTHOR
munmap() was developed by HP, AT&T, and OSF.
SEE ALSO
mmap(2), sysconf(2).
STANDARDS CONFORMANCE
munmap(): AES, SVID3
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 2203