Rudiments
memorymapincludes.h
1 // Copyright (c) 2004 David Muse
2 // See the COPYING file for more information.
3 
4 #include <rudiments/private/dll.h>
5 #include <rudiments/private/inttypes.h>
6 #include <sys/types.h>
7 #ifdef RUDIMENTS_HAVE_MMAP
8  #include <sys/mman.h>
9 #endif
10 #ifdef RUDIMENTS_HAVE_CREATE_FILE_MAPPING
11  #include <windows.h>
12  #define PROT_NONE 0
13  #define PROT_EXEC 1
14  #define PROT_READ 2
15  #define PROT_WRITE 4
16  #define MAP_FIXED 0
17  #define MAP_DENYWRITE 1
18  #define MAP_EXECUTABLE 2
19  #define MAP_NORESERVE 4
20  #define MAP_LOCKED 8
21  #define MAP_GROWSDOWN 16
22  #define MAP_ANONYMOUS 32
23  #define MAP_ANON 64
24  #define MAP_32BIT 128
25  #define MAP_AUTOGROW 256
26  #define MAP_AUTORESRV 512
27  #define MAP_COPY 1024
28  #define MAP_LOCAL 2048
29 #endif