Lines Matching refs:pagesize
78 size_t pagesize = getpagesize (); in do_test() local
79 void *firstpage_backup = xmalloc (pagesize); in do_test()
80 void *lastpage_backup = xmalloc (pagesize); in do_test()
93 char *ptr_aligned = (char *) ((uintptr_t) ptr & ~(pagesize - 1)); in do_test()
98 memcpy (firstpage_backup, ptr_aligned, pagesize); in do_test()
99 memcpy (lastpage_backup, ptr_aligned + big_size - pagesize, in do_test()
100 pagesize); in do_test()
101 xmmap (ptr_aligned - pagesize, pagesize + big_size + pagesize, in do_test()
104 memcpy (ptr_aligned, firstpage_backup, pagesize); in do_test()
105 memcpy (ptr_aligned + big_size - pagesize, lastpage_backup, in do_test()
106 pagesize); in do_test()
112 if (mmap (NULL, pagesize, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0) in do_test()