Merge pull request #1405 from boydgreenfield/add_mmap_map_populate

Add mmap map populate
This commit is contained in:
Andreas Rumpf 2014-08-12 19:50:14 +02:00
commit bba644fbd1
2 changed files with 12 additions and 2 deletions

View file

@ -1579,6 +1579,16 @@ var
MSG_OOB* {.importc, header: "<sys/socket.h>".}: cint
## Out-of-band data.
when defined(linux):
var
MAP_POPULATE* {.importc, header: "<sys/mman.h>".}: cint
## Populate (prefault) page tables for a mapping.
else:
var
MAP_POPULATE*: cint = 0
when defined(macosx):
var
MSG_HAVEMORE* {.importc, header: "<sys/socket.h>".}: cint