1 /* 2 * sys/mman.h 3 * mman-win32 4 */ 5 6 #ifndef _SYS_MMAN_H_ 7 #define _SYS_MMAN_H_ 8 9 #include <sys/types.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /* We need MAP_ANON in src/buffer.c */ 16 17 #define MAP_FILE 0 18 #define MAP_SHARED 1 19 #define MAP_PRIVATE 2 20 #define MAP_TYPE 0xf 21 #define MAP_FIXED 0x10 22 #define MAP_ANONYMOUS 0x20 23 #define MAP_ANON MAP_ANONYMOUS 24 25 #define MAP_FAILED ((void *)-1) 26 27 #ifdef __cplusplus 28 }; 29 #endif 30 31 #endif /* _SYS_MMAN_H_ */