MAP(2) — System Interface Manual — System Calls
NAME
map − map pages of memory
SYNOPSIS
#include <mman.h>
#include <sys/types.h>
map(addr, len, prot, share, fd, off)
caddr_t addr; int len, prot, share, fd; off_t off;
DESCRIPTION
Map causes the pages starting at addr and continuing for len bytes to be mapped 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), remap(2), unmap(2), madvise(2)
DIAGNOSTICS
Sun System Release 0.3