Lines Matching refs:p2

53     void *p2;  in check_aligned_anonymous_unfixed_mmaps()  local
65 p2 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps()
79 fail_unless(p2 != MAP_FAILED); in check_aligned_anonymous_unfixed_mmaps()
86 p = (uintptr_t) p2; in check_aligned_anonymous_unfixed_mmaps()
97 memcpy(dummybuf, p2, pagesize); in check_aligned_anonymous_unfixed_mmaps()
102 munmap(p2, len); in check_aligned_anonymous_unfixed_mmaps()
137 char *p2; in check_aligned_anonymous_unfixed_colliding_mmaps() local
152 p2 = mmap(NULL, pagesize, PROT_READ, in check_aligned_anonymous_unfixed_colliding_mmaps()
154 fail_unless(p2 != MAP_FAILED); in check_aligned_anonymous_unfixed_colliding_mmaps()
155 p = (uintptr_t) p2; in check_aligned_anonymous_unfixed_colliding_mmaps()
157 memcpy(dummybuf, p2, pagesize); in check_aligned_anonymous_unfixed_colliding_mmaps()
167 if (p3 < p2 in check_aligned_anonymous_unfixed_colliding_mmaps()
168 && (p3 + nlen) > p2) { in check_aligned_anonymous_unfixed_colliding_mmaps()
180 munmap(p2, pagesize); in check_aligned_anonymous_unfixed_colliding_mmaps()
251 unsigned int *p1, *p2, *p3; in check_file_unfixed_mmaps() local
264 p2 = mmap(NULL, len, PROT_READ, in check_file_unfixed_mmaps()
272 fail_unless (p2 != MAP_FAILED); in check_file_unfixed_mmaps()
279 p = (uintptr_t) p2; in check_file_unfixed_mmaps()
285 D(printf ("p1=%d p2=%d p3=%d\n", *p1, *p2, *p3)); in check_file_unfixed_mmaps()
287 fail_unless (*p2 == (pagesize / sizeof *p2)); in check_file_unfixed_mmaps()
291 memcpy (dummybuf, p2, pagesize); in check_file_unfixed_mmaps()
294 munmap (p2, len); in check_file_unfixed_mmaps()
380 unsigned int *p1, *p2, *p3, *p4; in check_file_fixed_mmaps() local
395 p2 = mmap(addr + pagesize, pagesize, PROT_READ, in check_file_fixed_mmaps()
408 fail_unless (p2 == (void *)addr + pagesize); in check_file_fixed_mmaps()
414 fail_unless (*p2 == (pagesize / sizeof *p2)); in check_file_fixed_mmaps()
419 memcpy (dummybuf, p2, pagesize); in check_file_fixed_mmaps()
424 munmap (p2, pagesize); in check_file_fixed_mmaps()