Rudiments
|
00001 // Copyright (c) 2004 David Muse 00002 // See the COPYING file for more information. 00003 00004 #include <rudiments/private/dll.h> 00005 #include <rudiments/private/inttypes.h> 00006 #include <sys/types.h> 00007 #ifdef RUDIMENTS_HAVE_MMAP 00008 #include <sys/mman.h> 00009 #endif 00010 #ifdef RUDIMENTS_HAVE_CREATE_FILE_MAPPING 00011 #include <windows.h> 00012 #define PROT_NONE 0 00013 #define PROT_EXEC 1 00014 #define PROT_READ 2 00015 #define PROT_WRITE 4 00016 #define MAP_FIXED 0 00017 #define MAP_DENYWRITE 1 00018 #define MAP_EXECUTABLE 2 00019 #define MAP_NORESERVE 4 00020 #define MAP_LOCKED 8 00021 #define MAP_GROWSDOWN 16 00022 #define MAP_ANONYMOUS 32 00023 #define MAP_ANON 64 00024 #define MAP_32BIT 128 00025 #define MAP_AUTOGROW 256 00026 #define MAP_AUTORESRV 512 00027 #define MAP_COPY 1024 00028 #define MAP_LOCAL 2048 00029 #endif