Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ munmap(2) — SunOS 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

munmap(2)

MUNMAP(2)  —  System Interface Manual — System Calls

NAME

munmap − unmap pages of memory

SYNOPSIS

#include <mman.h>

munmap(addr, len)
caddr_t addr; int len;

DESCRIPTION

N.B.: This call is not completely implemented in 4.2. 

Munmap causes the pages starting at addr and continuing for len bytes to refer to private pages which will be initialized to zero on reference. 

RETURN VALUE

The call returns −1 on error, 0 on success. 

ERRORS

The call fails if any of the following:

[EINVAL] The argument address or length is not a multiple of the page size as returned by getpagesize(2),or the length is negative. 

[EINVAL] The entire range of pages specified in the call is not part of data space. 

SEE ALSO

brk (2), munmap(2)

Sun System Release 1.0  —  8 August 1983

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