summaryrefslogtreecommitdiff
path: root/usr/src/man/man2/mmap.2
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man2/mmap.2')
-rw-r--r--usr/src/man/man2/mmap.210
1 files changed, 2 insertions, 8 deletions
diff --git a/usr/src/man/man2/mmap.2 b/usr/src/man/man2/mmap.2
index c32b561a73..6d2e92675d 100644
--- a/usr/src/man/man2/mmap.2
+++ b/usr/src/man/man2/mmap.2
@@ -8,7 +8,7 @@
.\" 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.
.\" 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.
.\" 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]
-.TH MMAP 2 "Feb 4, 2009"
+.TH MMAP 2 "April 9, 2016"
.SH NAME
mmap \- map pages of memory
.SH SYNOPSIS
@@ -21,7 +21,6 @@ mmap \- map pages of memory
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBmmap()\fR function establishes a mapping between a process's address
space and a file or shared memory object. The format of the call is as follows:
@@ -285,7 +284,7 @@ the dynamic linker when it maps text segments of shared objects. When the
\fBMAP_TEXT\fR option is used for regular file mappings on some platforms, the
system can choose a mapping size larger than the page size returned by
\fBsysconf\fR(3C). The specific page sizes that are used depend on the platform
-and the alignment of the addr and len arguments. Several diffrent mapping sizes
+and the alignment of the addr and len arguments. Several different mapping sizes
can be used to map the region with larger page sizes used in the parts of the
region that meet alignment and size requirements for those page sizes.
.sp
@@ -663,7 +662,6 @@ application:
.RE
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, the \fBmmap()\fR function returns the address at
which the mapping was placed (\fIpa\fR); otherwise, it returns a value of
@@ -676,7 +674,6 @@ If \fBmmap()\fR fails for reasons other than \fBEBADF\fR, \fBEINVAL\fR or
\fBENOTSUP\fR, some of the mappings in the address range starting at \fIaddr\fR
and continuing for \fIlen\fR bytes may have been unmapped.
.SH ERRORS
-.sp
.LP
The \fBmmap()\fR function will fail if:
.sp
@@ -825,7 +822,6 @@ locking. See \fBfcntl\fR(2).
.RE
.SH USAGE
-.sp
.LP
Use of \fBmmap()\fR may reduce the amount of memory available to other memory
allocation functions.
@@ -883,7 +879,6 @@ address = mmap((caddr_t) 0, len, (PROT_READ | PROT_WRITE),
.in -2
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -901,7 +896,6 @@ MT-Level Async-Signal-Safe
.TE
.SH SEE ALSO
-.sp
.LP
\fBclose\fR(2), \fBexec\fR(2), \fBfcntl\fR(2), \fBfork\fR(2),
\fBgetrlimit\fR(2), \fBmemcntl\fR(2), \fBmmapobj\fR(2), \fBmprotect\fR(2),