// nt-lite mmap extension declarations. #pragma once #include #include #include #include #define PROT_NONE 0x0 #define PROT_READ 0x1 #define PROT_WRITE 0x2 #define PROT_EXEC 0x4 #define MAP_SHARED 0x01 #define MAP_PRIVATE 0x02 #define MAP_FAILED ((void*)(intptr_t)-1) #define MS_ASYNC 0x01 #define MS_SYNC 0x04 #define MS_INVALIDATE 0x02 NTL_POSIX_API void* mmap(void* address, size_t length, int protection, int flags, int fd, off_t offset); NTL_POSIX_API int munmap(void* address, size_t length); NTL_POSIX_API int msync(void* address, size_t length, int flags);