mman(5) mman(5)
NAME
mman - memory management declarations
SYNOPSIS
#include <sys/mman.h>
DESCRIPTION
The following protection options are defined:
PROTREAD Page can be read.
PROTWRITE Page can be written.
PROTEXEC Page can be executed.
PROTNONE Page can not be accessed.
The following flag options are defined:
MAPSHARED Share changes.
MAPPRIVATE Changes are private.
MAPFIXED Interpret addr exactly.
The following flags are defined for msync():
MSASYNC Perform asynchronous writes.
MSSYNC Perform synchronous writes.
MSINVALIDATE Invalidate mappings.
The sizet and offt types are defined as described in <sys/types.h>.
The following are declared in <sys/mman.h> as functions and may also
be defined as macros:
void *mmap(void *addr, sizet len, int prot, int flags, int fd,
offt off);
int mprotect(void *addr, sizet len, int prot);
int msync(void * addr, sizet len, int flags);
int munmap(void *addr, sizet len);
The following is declared as a function and may also be defined as a
macro:
void *mmap64(void *addr, sizet len, int prot, int flags,
int fd, off64t offset);
SEE ALSO
mmap(2), mprotect(2), munmap(2), msync(3C), lfs(5).
Page 1 Reliant UNIX 5.44 Printed 11/98