Lines Matching refs:page

81 static long	page = 0;  variable
99 ATF_REQUIRE(munmap(map, page) == 0); in map_check()
133 nwritten = write(fds[0], (char *)vp + page, BUFSIZE - page); in testloan()
141 nread = read(fds[1], buf + page, BUFSIZE - page); in testloan()
149 if (docheck != 0 && memcmp(backup, buf + page, nread) != 0) in testloan()
227 map = mmap(&addr, page, PROT_READ, MAP_FIXED|MAP_PRIVATE, -1, 0); in ATF_TC_BODY()
233 map = mmap(NULL, page, PROT_READ, MAP_ANON|MAP_PRIVATE, INT_MAX, 0); in ATF_TC_BODY()
342 map = mmap(NULL, page, PROT_NONE, MAP_ANON|MAP_PRIVATE, -1, 0); in ATF_TC_BODY()
357 ATF_REQUIRE(munmap(map, page) == 0); in ATF_TC_BODY()
444 ATF_REQUIRE(ftruncate(fd, page) == 0); in ATF_TC_BODY()
446 map = mmap(NULL, page, PROT_READ | PROT_WRITE, MAP_FILE|MAP_PRIVATE, in ATF_TC_BODY()
450 for (i = 0; i < page; i++) in ATF_TC_BODY()
454 ATF_REQUIRE(ftruncate(fd, page / 8) == 0); in ATF_TC_BODY()
455 ATF_REQUIRE(ftruncate(fd, page / 4) == 0); in ATF_TC_BODY()
456 ATF_REQUIRE(ftruncate(fd, page / 2) == 0); in ATF_TC_BODY()
457 ATF_REQUIRE(ftruncate(fd, page / 12) == 0); in ATF_TC_BODY()
458 ATF_REQUIRE(ftruncate(fd, page / 64) == 0); in ATF_TC_BODY()
460 (void)munmap(map, page); in ATF_TC_BODY()
490 map = mmap(NULL, page, PROT_READ, MAP_FILE|MAP_PRIVATE, fd, 0); in ATF_TC_BODY()
506 for (i = 0; i < page; i++) in ATF_TC_BODY()
513 (void)munmap(map, page); in ATF_TC_BODY()
524 ATF_REQUIRE(munmap(map, page) == 0); in ATF_TC_BODY()
560 map = mmap(NULL, page, PROT_EXEC, flags, -1, 0); in ATF_TC_BODY()
563 map = mmap(NULL, page, PROT_READ, flags, -1, 0); in ATF_TC_BODY()
566 map = mmap(NULL, page, PROT_WRITE, flags, -1, 0); in ATF_TC_BODY()
569 map = mmap(NULL, page, PROT_READ|PROT_WRITE, flags, -1, 0); in ATF_TC_BODY()
572 map = mmap(NULL, page, PROT_EXEC|PROT_READ|PROT_WRITE, flags, -1, 0); in ATF_TC_BODY()
578 page = sysconf(_SC_PAGESIZE); in ATF_TP_ADD_TCS()
579 ATF_REQUIRE(page >= 0); in ATF_TP_ADD_TCS()