Lines Matching refs:page
44 static long page = 0; variable
62 buf = malloc(page); in msync_sync()
67 memset(buf, 'x', page); in msync_sync()
76 ATF_REQUIRE_MSG(write(fd, buf, page) != -1, "write(2) failed: %s", in msync_sync()
79 map = mmap(NULL, page, PROT_READ | PROT_WRITE, MAP_FILE|MAP_PRIVATE, in msync_sync()
108 if (msync(map, page, flags) != 0) { in msync_sync()
125 (void)munmap(map, page); in msync_sync()
175 map = mmap(NULL, page, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, in ATF_TC_BODY()
179 (void)munmap(map, page); in ATF_TC_BODY()
181 ATF_REQUIRE(msync(map, page, MS_SYNC) != 0); in ATF_TC_BODY()
224 page = sysconf(_SC_PAGESIZE); in ATF_TP_ADD_TCS()
226 ATF_REQUIRE(page >= 0); in ATF_TP_ADD_TCS()
227 ATF_REQUIRE(page > off); in ATF_TP_ADD_TCS()