1 // This is an incomplete & imprecice implementation of the Posix 2 // standard file by the same name 3 #ifndef __MINGW_SYS_MMAN__ 4 #define __MINGW_SYS_MMAN__ 5 6 #ifdef MINGW // Only for cross compilation to mingw 7 8 #include <sys/types.h> 9 10 #if !HAVE_MMAP 11 12 #define MAP_FAILED (void *) -1 13 #define MAP_ANONYMOUS 1 14 #define MAP_ANON MAP_ANONYMOUS 15 #define MAP_PRIVATE 2 16 17 #define PROT_NONE 0 18 #define PROT_READ 1 19 #define PROT_WRITE 2 20 #define PROT_EXEC 4 21 22 void* mmap(void *, size_t, int, int, int, size_t); 23 int munmap(void *, size_t); 24 #endif 25 26 #endif // MINGW 27 #endif