Lines Matching refs:ptr
87 void* ptr; in TEST_F()
88 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
89 ASSERT_TRUE(ptr != NULL); in TEST_F()
111 void* ptr; in TEST_F()
112 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
113 ASSERT_TRUE(ptr != NULL); in TEST_F()
115 ASSERT_EQ(0, munmap(ptr, size / 2)); in TEST_F()
138 void* ptr; in TEST_F()
139 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
140 ASSERT_TRUE(ptr != NULL); in TEST_F()
163 void* ptr; in TEST_F()
164 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
165 ASSERT_TRUE(ptr != NULL); in TEST_F()
167 ASSERT_EQ(0, munmap(ptr, size / 2)); in TEST_F()
191 void* ptr; in TEST_F()
192 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
193 ASSERT_TRUE(ptr != NULL); in TEST_F()
217 void* ptr; in TEST_F()
218 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
219 ASSERT_TRUE(ptr != NULL); in TEST_F()
221 ASSERT_EQ(0, munmap(ptr, size / 2)); in TEST_F()