mmap.2: ERRORS: point out that ENOMEM can occur even for munmap()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-07-22 09:13:00 +02:00
parent 74309bedf2
commit c0b897882c
1 changed files with 5 additions and 0 deletions

View File

@ -499,6 +499,11 @@ No memory is available.
.TP
.B ENOMEM
The process's maximum number of mappings would have been exceeded.
This error can also occur for
.BR munmap (2),
when unmapping a region in the middle of an existing mapping,
since this results in two smaller mappings on either side of
the region being unmapped.
.TP
.B EPERM
The