Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mmap(2) — SunOS 0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpagesize(2)

madvise(2)

mremap(2)

munmap(2)

MAP(2)  —  System Interface Manual — System Calls

NAME

mmap − map pages of memory

SYNOPSIS

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

mmap(addr, len, prot, share, fd, off)
caddr_t addr; int len, prot, share, fd; off_t off;

DESCRIPTION

This 4.3 call is not completely implemented in 4.2.

Mmap maps the pages starting at addr and continuing for len bytes from the object represented by the descriptor fd, at offset off. The parameter share specifies whether modifications made to this mapped copy of the page are to be kept private or are to be shared with other references.  The parameter prot specifies the accessibility of the mapped pages.  The addr and len parameters and the sum of the current position in fd and the off parameters must be multiples of the page size (found using the getpagesize(2) call).

SEE ALSO

getpagesize(2), madvise(2), mremap(2), munmap(2)

Sun System Release 0.3  —  25 April 1983

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