Lines Matching refs:page
51 static long page = 0; variable
128 map = mmap(NULL, page, prot[i], MAP_SHARED, fd, 0); in ATF_TC_BODY()
135 ATF_REQUIRE(mprotect(map, page, PROT_WRITE) != 0); in ATF_TC_BODY()
137 ATF_REQUIRE(munmap(map, page) == 0); in ATF_TC_BODY()
209 map = mmap(NULL, page, PROT_WRITE|PROT_READ, MAP_ANON, -1, 0); in ATF_TC_BODY()
216 ATF_REQUIRE(mprotect(map, page, PROT_EXEC|PROT_READ) == 0); in ATF_TC_BODY()
220 ATF_REQUIRE(mprotect(map, page, PROT_READ) == 0); in ATF_TC_BODY()
233 ATF_REQUIRE(munmap(map, page) == 0); in ATF_TC_BODY()
293 map = mmap(NULL, page, prot[i], MAP_ANON, -1, 0); in ATF_TC_BODY()
300 (void)munmap(map, page); in ATF_TC_BODY()
333 map = mmap(NULL, page, PROT_WRITE|PROT_READ, MAP_ANON, -1, 0); in ATF_TC_BODY()
337 ATF_REQUIRE(mprotect(map, page, PROT_READ) == 0); in ATF_TC_BODY()
351 ATF_REQUIRE(munmap(map, page) == 0); in ATF_TC_BODY()
356 page = sysconf(_SC_PAGESIZE); in ATF_TP_ADD_TCS()
357 ATF_REQUIRE(page >= 0); in ATF_TP_ADD_TCS()