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.man.txt
          +++ new/usr/src/man/man2/mmap.2.man.txt
↓ open down ↓ 130 lines elided ↑ open up ↑
 131  131  
 132  132  
 133  133         MAP_INITDATA
 134  134                          Map initialized data segment.
 135  135  
 136  136  
 137  137         MAP_32BIT
 138  138                          Map to the lower 32 bits of address space.
 139  139  
 140  140  
      141 +       MAP_FILE
      142 +                        Map a regular file. This is the default behavior;
      143 +                        specifying this flag is not required. It is provided
      144 +                        for compatibility with other systems and should not be
      145 +                        included in new code.
 141  146  
      147 +
      148 +
 142  149         The MAP_SHARED and MAP_PRIVATE options describe the disposition of
 143  150         write references to the underlying object. If MAP_SHARED is specified,
 144  151         write references will change the memory object. If MAP_PRIVATE is
 145  152         specified, the initial write reference will create a private copy of
 146  153         the memory object page and redirect the mapping to the copy. The
 147  154         private copy is not created until the first write; until then, other
 148  155         users who have the object mapped MAP_SHARED can change the object.
 149  156         Either MAP_SHARED or MAP_PRIVATE must be specified, but not both. The
 150  157         mapping type is retained across fork(2).
 151  158  
↓ open down ↓ 452 lines elided ↑ open up ↑
 604  611         +--------------------+-------------------+
 605  612  
 606  613  SEE ALSO
 607  614         close(2), exec(2), fcntl(2), fork(2), getrlimit(2), memcntl(2),
 608  615         mmapobj(2), mprotect(2), munmap(2), shmat(2), lockf(3C), mlockall(3C),
 609  616         msync(3C), plock(3C), sysconf(3C), attributes(5), lf64(5),
 610  617         standards(5), null(7D), zero(7D)
 611  618  
 612  619  
 613  620  
 614      -                                 April 9, 2016                         MMAP(2)
      621 +                                August 29, 2016                        MMAP(2)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX