1mman.h(3HEAD)                       Headers                      mman.h(3HEAD)
2
3
4

NAME

6       mman.h, mman - memory management declarations
7

SYNOPSIS

9       #include <sys/mman.h>
10
11

DESCRIPTION

13       The <sys/mman.h> header supports the following options:
14
15           o      the Memory Mapped Files option
16
17           o      the Shared Memory Objects option
18
19           o      the Process Memory Locking option
20
21           o      the Memory Protection option
22
23           o      the Synchronized Input and Output option
24
25
26       For  Memory Mapped Files and Shared Memory Objects options, the follow‐
27       ing protection options are defined:
28
29       PROT_READ     Page can be read.
30
31
32       PROT_WRITE    Page can be written.
33
34
35       PROT_EXEC     Page can be executed.
36
37
38       PROT_NONE     Page cannot be accessed.
39
40
41
42       The following flag options are defined:
43
44       MAP_SHARED     Share changes.
45
46
47       MAP_PRIVATE    Changes are private.
48
49
50       MAP_FIXED      Interpret addr exactly.
51
52
53
54       The flags immediately following are defined for msync(). See msync(3C).
55
56       MS_ASYNC         Perform asynchronous writes.
57
58
59       MS_SYNC          Perform synchronous writes.
60
61
62       MS_INVALIDATE    Invalidate mappings.
63
64
65
66       The symbolic constants immediately following are defined for the mlock‐
67       all() function. See mlockall(3C).
68
69       MCL_CURRENT    Lock currently mapped pages.
70
71
72       MCL_FUTURE     Lock pages that become mapped.
73
74
75
76       The  symbolic constant MAP_FAILED is defined to indicate a failure from
77       the mmap() function. See mmap(2).
78
79
80       The mode_t, off_t, and size_t types are  be  defined  as  described  in
81       <sys/types.h>. See types(3HEAD).
82

ATTRIBUTES

84       See attributes(5) for descriptions of the following attributes:
85
86
87
88
89       ┌─────────────────────────────┬─────────────────────────────┐
90       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
91       ├─────────────────────────────┼─────────────────────────────┤
92       │Interface Stability          │Committed                    │
93       ├─────────────────────────────┼─────────────────────────────┤
94       │Standard                     │See standards(5).            │
95       └─────────────────────────────┴─────────────────────────────┘
96

SEE ALSO

98       mmap(2),  mprotect(2), munmap(2), madvise(3C), mlock(3C), mlockall(3C),
99       msync(3C), shm_open(3C), shm_unlink(3C), attributes(5), standards(5)
100
101
102
103SunOS 5.11                        5 Feb 2008                     mman.h(3HEAD)
Impressum