Home | History | Annotate | Download | only in mman-win32

Lines Matching refs:prot

21 static DWORD __map_mmap_prot_page(const int prot)

25 if (prot == PROT_NONE)
28 if ((prot & PROT_EXEC) != 0)
30 protect = ((prot & PROT_WRITE) != 0) ?
35 protect = ((prot & PROT_WRITE) != 0) ?
42 static DWORD __map_mmap_prot_file(const int prot)
46 if (prot == PROT_NONE)
49 if ((prot & PROT_READ) != 0)
51 if ((prot & PROT_WRITE) != 0)
53 if ((prot & PROT_EXEC) != 0)
59 void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
74 const DWORD protect = __map_mmap_prot_page(prot);
75 const DWORD desiredAccess = __map_mmap_prot_file(prot);
94 || prot == PROT_EXEC)
140 int mprotect(void *addr, size_t len, int prot)
142 DWORD newProtect = __map_mmap_prot_page(prot);