Add automatic MAP_POPULATE flag for opening read_only (MAP_PRIVATE) and shared (MAP_SHARED) mmap files.
This commit is contained in:
parent
dcf1425eb9
commit
272fd42c97
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue