Lines Matching refs:size
50 size_t size;
95 void *buf, size_t size)
102 p = malloc(size + 2);
107 map.size = size + 2;
109 p[map.size-1] = 0xff;
132 map.size = size + pagesize - (size % pagesize) + pagesize * 2;
134 p = (unsigned char *)mmap(0, map.size, PROT_READ | PROT_WRITE,
145 ret = mprotect (p + map.size - pagesize, pagesize, 0);
151 map.data_start = p + map.size - pagesize - size;
172 map.data_size = size;
174 memcpy(map.data_start, buf, size);
189 if (p[map.size-1] != 0xff)
190 errx(1, "%s: %s overrun %x\n", testname, map_name, p[map.size - 1]);
198 ret = munmap (map.start, map.size);