Add automatic MAP_POPULATE flag for opening read_only (MAP_PRIVATE) and shared (MAP_SHARED) mmap files.

This commit is contained in:
Nick Greenfield 2014-07-23 11:25:21 -07:00
commit 272fd42c97
2 changed files with 4 additions and 2 deletions

View file

@ -1375,6 +1375,8 @@ var
## Share changes.
MAP_PRIVATE* {.importc, header: "<sys/mman.h>".}: cint
## Changes are private.
MAP_POPULATE* {.importc, header: "<sys/mman.h>".}: cint
## Populate (prefault) page tables for a mapping.
MAP_FIXED* {.importc, header: "<sys/mman.h>".}: cint
## Interpret addr exactly.
MS_ASYNC* {.importc, header: "<sys/mman.h>".}: cint