HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
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 Release 11i: December 2000 − 1 − Section 2−−197
___
___