• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // This is an incomplete & imprecice implementation of the Posix
2 // standard file by the same name
3 
4 
5 // Since this is only intended for VC++ compilers
6 // use #pragma once instead of guard macros
7 #pragma once
8 
9 #ifdef _MSC_VER // Only for cross compilation to windows
10 
11 #include <sys/types.h>
12 
13 #define MAP_FAILED (void *) -1
14 #define MAP_ANONYMOUS        1
15 #define MAP_ANON             MAP_ANONYMOUS
16 #define MAP_PRIVATE          2
17 #define PROT_READ            4
18 #define PROT_WRITE           8
19 
20 void* mmap(void *, size_t, int, int, int, size_t);
21 int   munmap(void *, size_t);
22 
23 #endif // _MSC_VER
24