Rudiments
memorymapincludes.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#include <rudiments/object.h>
5
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 #define _WINSOCKAPI_
12 #include <windows.h>
13#endif
14#ifndef RUDIMENTS_HAVE_MMAP
15 #define PROT_NONE 0
16 #define PROT_EXEC 1
17 #define PROT_READ 2
18 #define PROT_WRITE 4
19
20 #define MAP_SHARED 1
21 #define MAP_PRIVATE 2
22 #define MAP_FIXED 4
23 #define MAP_DENYWRITE 8
24 #define MAP_EXECUTABLE 16
25 #define MAP_NORESERVE 32
26 #define MAP_LOCKED 64
27 #define MAP_GROWSDOWN 128
28 #define MAP_ANONYMOUS 256
29 #define MAP_ANON 512
30 #define MAP_32BIT 1024
31 #define MAP_AUTOGROW 2048
32 #define MAP_AUTORESRV 4096
33 #define MAP_COPY 8192
34 #define MAP_LOCAL 16384
35#endif
36
Definition avltree.h:11