Print this page
6607 add default MAP_FILE symbol to sys/mman.h
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man2/mmap.2
          +++ new/usr/src/man/man2/mmap.2
   1    1  '\" te
        2 +.\" Copyright 2016 James S Blachly, MD. All Rights Reserved.
   2    3  .\" Copyright 2013 OmniTI Computer Consulting, Inc. All Rights Reserved.
   3    4  .\" Copyright 1989 AT&T.  Copyright (c) 2009, Sun Microsystems, Inc.  All Rights Reserved.  Portions Copyright (c) 1992, X/Open Company Limited.  All Rights Reserved.
   4    5  .\" 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    6  .\" http://www.opengroup.org/bookstore/.
   6    7  .\" 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    8  .\"  This notice shall appear on any product containing this material.
   8    9  .\" 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   10  .\" 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   11  .\" 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 MMAP 2 "April 9, 2016"
       12 +.TH MMAP 2 "August 29, 2016"
  12   13  .SH NAME
  13   14  mmap \- map pages of memory
  14   15  .SH SYNOPSIS
  15   16  .LP
  16   17  .nf
  17   18  #include <sys/mman.h>
  18   19  
  19   20  \fBvoid *\fR\fBmmap\fR(\fBvoid *\fR\fIaddr\fR, \fBsize_t\fR \fIlen\fR, \fBint\fR \fIprot\fR, \fBint\fR \fIflags\fR,
  20   21       \fBint\fR \fIfildes\fR, \fBoff_t\fR \fIoff\fR);
  21   22  .fi
↓ open down ↓ 182 lines elided ↑ open up ↑
 204  205  
 205  206  .sp
 206  207  .ne 2
 207  208  .na
 208  209  \fB\fBMAP_32BIT\fR\fR
 209  210  .ad
 210  211  .RS 17n
 211  212  Map to the lower 32 bits of address space.
 212  213  .RE
 213  214  
      215 +.sp
      216 +.ne 2
      217 +.na
      218 +\fB\fBMAP_FILE\fR\fR
      219 +.ad
      220 +.RS 17n
      221 +Map a regular file. This is the default behavior;
      222 +specifying this flag is not required. It is provided
      223 +for compatibility with other systems and should not be
      224 +included in new code.
      225 +.RE
      226 +
 214  227  .sp
 215  228  .LP
 216  229  The \fBMAP_SHARED\fR and \fBMAP_PRIVATE\fR options describe the disposition of
 217  230  write references to the underlying object. If \fBMAP_SHARED\fR is specified,
 218  231  write references will change the memory object. If \fBMAP_PRIVATE\fR is
 219  232  specified, the initial write reference will create a private copy of the memory
 220  233  object page and redirect the mapping to the copy. The private copy is not
 221  234  created until the first write; until then, other users who have the object
 222  235  mapped \fBMAP_SHARED\fR can change the object. Either \fBMAP_SHARED\fR or
 223  236  \fBMAP_PRIVATE\fR must be specified, but not both. The mapping type is retained
↓ open down ↓ 681 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX