Project

General

Profile

Bug #6607

add default MAP_FILE symbol to sys/mman.h

Added by Richard PALO over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-02-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

Many programs, such as webkit, specify 'MAP_FILE | MAP_SHARED' as flags to the call to mmap.

Apparently many platforms, *BSD and Linux, define it as follows in mman.h:

 #define MAP_FILE    0x0000 /* map from file (default) */

As it is the default, it should be just fine to define as such on SunOS thus avoiding the necessity
to add -DMAP_FILE=0 to CPPFLAGS.

History

#1

Updated by Electric Monk over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit ccd5347f5bded380cdbfc73f87db15cfd5610961

commit  ccd5347f5bded380cdbfc73f87db15cfd5610961
Author: James Blachly <james.blachly@gmail.com>
Date:   2016-09-06T14:04:31.000Z

    6607 add default MAP_FILE symbol to sys/mman.h
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF