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

Lines Matching refs:map

16     void* map = mmap(NULL, 1024, PROT_READ | PROT_WRITE,

18 if (map == MAP_FAILED)
24 *((unsigned char*)map) = 1;
26 int result = munmap(map, 1024);
36 void* map = mmap(NULL, 1024, PROT_READ,
38 if (map == MAP_FAILED)
44 *((unsigned char*)map) = 1;
46 int result = munmap(map, 1024);
56 void* map = mmap(NULL, 1024, PROT_WRITE,
58 if (map == MAP_FAILED)
64 *((unsigned char*)map) = 1;
66 int result = munmap(map, 1024);
76 void* map = mmap(NULL, 1024, PROT_READ,
78 if (map == MAP_FAILED)
84 if (*((unsigned char*)map) != 0)
86 (int)*((unsigned char*)map));
88 int result = munmap(map, 1024);
101 void* map = mmap(NULL, 1024, PROT_READ | PROT_WRITE, MAP_PRIVATE, o, 0);
102 if (map == MAP_FAILED)
108 *((unsigned char*)map) = 1;
110 int result = munmap(map, 1024);
136 void* map = mmap(NULL, map_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, o, 0);
137 if (map == MAP_FAILED)
144 if (mlock(map, map_size) != 0)
151 *((unsigned char*)map) = 1;
153 if (munlock(map, map_size) != 0)
160 result = munmap(map, map_size);
186 void* map = mmap(NULL, map_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, o, 0);
187 if (map == MAP_FAILED)
194 *((unsigned char*)map) = 1;
196 if (msync(map, map_size, MS_SYNC) != 0)
202 result = munmap(map, map_size);