Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ munmap(2) — NEWS-os 3.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

MUNMAP(2)  —  UNIX Programmer’s Manual

NAME

munmap − unmapping pages of a memory

SYNOPSIS

#include <sys/mman.h>
#include <sys/types.h>
 munmap(addr, len)
caddr_t addr; int len;

DESCRIPTION

This system call is not implemented completely in NEWS-OS 3.x.  Munmap releases(unmaps) the len bytes beginning at addr. 

RETURN VALUE

Upon successful completion, a value of 0 is returned.  Otherwise, a value of −1 is returned. 

ERRORS

[EINVAL] The address or the length is not multiples of the page size obtained by getpagesize(2) or the length is a negative.

[EINVAL] The specified area is not found on the data area. 

SEE ALSO

brk (2), mmap (2), close (2)

NEWS-OSRelease 3.3

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