MMAN.H(3HEAD) Headers MMAN.H(3HEAD)

NAME


mman.h, mman - memory management declarations

SYNOPSIS


#include <sys/mman.h>


DESCRIPTION


The <sys/mman.h> header supports the following options:

o the Memory Mapped Files option

o the Shared Memory Objects option

o the Process Memory Locking option

o the Memory Protection option

o the Synchronized Input and Output option


For Memory Mapped Files and Shared Memory Objects options, the
following protection options are defined:

PROT_READ
Page can be read.


PROT_WRITE
Page can be written.


PROT_EXEC
Page can be executed.


PROT_NONE
Page cannot be accessed.


The following flag options are defined:

MAP_SHARED
Share changes.


MAP_PRIVATE
Changes are private.


MAP_FIXED
Interpret addr exactly.


The flags immediately following are defined for msync(). See
msync(3C).

MS_ASYNC
Perform asynchronous writes.


MS_SYNC
Perform synchronous writes.


MS_INVALIDATE
Invalidate mappings.


The symbolic constants immediately following are defined for the
mlockall() function. See mlockall(3C).

MCL_CURRENT
Lock currently mapped pages.


MCL_FUTURE
Lock pages that become mapped.


The symbolic constant MAP_FAILED is defined to indicate a failure
from the mmap() function. See mmap(2).


The mode_t, off_t, and size_t types are be defined as described in
<sys/types.h>. See types(3HEAD).

ATTRIBUTES


See attributes(7) for descriptions of the following attributes:


+--------------------+-------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-------------------+
|Interface Stability | Committed |
+--------------------+-------------------+
|Standard | See standards(7). |
+--------------------+-------------------+

SEE ALSO


mmap(2), mprotect(2), munmap(2), madvise(3C), mlock(3C),
mlockall(3C), msync(3C), shm_open(3C), shm_unlink(3C), attributes(7),
standards(7)

February 5, 2008 MMAN.H(3HEAD)

tribblix@gmail.com :: GitHub :: Privacy