Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ munmap(2) — svr3 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mmap(2)

sysconf(3C)



MUNMAP(2-SVR3)      RISC/os Reference Manual       MUNMAP(2-SVR3)



NAME
     munmap - unmap pages of memory.

SYNOPSIS
     #include <sys/types.h>
     #include <sys/mman.h>

     int munmap(caddrt addr, sizet len);

DESCRIPTION
     The function munmap removes the mappings for pages in the
     range [addr, addr + len).  Further references to these pages
     will result in the delivery of a SIGSEGV signal to the pro-
     cess.

     The function mmap often performs an implicit munmap.

RETURN VALUE
     Upon successful completion, the function munmap returns a
     value of 0; otherwise, it returns a value of -1 and sets
     errno to indicate an error.

ERRORS
     Under the following conditions, the function munmap fails
     and sets errno to:

     EINVAL if addr is not a multiple of the page size as
            returned by sysconf.

     EINVAL if addresses in the range [addr, addr + len) are out-
            side the valid range for the address space of a pro-
            cess.

     EINVAL The argument len has a value less than or equal to 0.

SEE ALSO
     mmap(2), sysconf(3C).


















                        Printed 11/19/92                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026