2 .\" Copyright (c) 2001, The IEEE and The Open Group. All Rights Reserved.
3 .\" Portions Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
4 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
7 .\" This notice shall appear on any product containing this material.
8 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
10 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
11 .TH MMAN.H 3HEAD "Feb 5, 2008"
13 mman.h, mman \- memory management declarations
17 #include <\fBsys/mman.h\fR>
23 The <\fBsys/mman.h\fR> header supports the following options:
28 the Memory Mapped Files option
34 the Shared Memory Objects option
40 the Process Memory Locking option
46 the Memory Protection option
52 the Synchronized Input and Output option
56 For Memory Mapped Files and Shared Memory Objects options, the following
57 protection options are defined:
70 \fB\fBPROT_WRITE\fR\fR
91 Page cannot be accessed.
96 The following \fIflag\fR options are defined:
100 \fB\fBMAP_SHARED\fR\fR
109 \fB\fBMAP_PRIVATE\fR\fR
118 \fB\fBMAP_FIXED\fR\fR
121 Interpret \fBaddr\fR exactly.
126 The flags immediately following are defined for \fBmsync()\fR. See
134 Perform asynchronous writes.
143 Perform synchronous writes.
149 \fB\fBMS_INVALIDATE\fR\fR
157 The symbolic constants immediately following are defined for the
158 \fBmlockall()\fR function. See \fBmlockall\fR(3C).
162 \fB\fBMCL_CURRENT\fR\fR
165 Lock currently mapped pages.
171 \fB\fBMCL_FUTURE\fR\fR
174 Lock pages that become mapped.
179 The symbolic constant \fBMAP_FAILED\fR is defined to indicate a failure from
180 the \fBmmap()\fR function. See \fBmmap\fR(2).
183 The \fBmode_t\fR, \fBoff_t\fR, and \fBsize_t\fR types are be defined as
184 described in <\fBsys/types.h\fR>. See \fBtypes\fR(3HEAD).
188 See \fBattributes\fR(5) for descriptions of the following attributes:
196 ATTRIBUTE TYPE ATTRIBUTE VALUE
198 Interface Stability Committed
200 Standard See \fBstandards\fR(5).
206 \fBmmap\fR(2), \fBmprotect\fR(2), \fBmunmap\fR(2), \fBmadvise\fR(3C),
207 \fBmlock\fR(3C), \fBmlockall\fR(3C), \fBmsync\fR(3C), \fBshm_open\fR(3C),
208 \fBshm_unlink\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)