Lines Matching refs:tmp2
63 char tmp2[] = "and this is a secondary buffer"; in TestMmapReadable() local
73 ASSERT_EQ(write(fd, tmp2, sizeof(tmp2)), sizeof(tmp2)); in TestMmapReadable()
75 ASSERT_EQ(memcmp(addr2, tmp2, sizeof(tmp2)), 0); in TestMmapReadable()
99 char tmp2[] = "and this is a secondary buffer"; in TestMmapWritable() local
108 ASSERT_EQ(ftruncate(fd, sizeof(tmp1) + sizeof(tmp2)), 0); in TestMmapWritable()
112 memcpy(addr2, tmp2, sizeof(tmp2)); in TestMmapWritable()
115 char buf[sizeof(tmp2)]; in TestMmapWritable()
117 ASSERT_EQ(memcmp(buf, tmp2, sizeof(tmp2)), 0); in TestMmapWritable()
125 ASSERT_EQ(memcmp(addr2, tmp2, sizeof(tmp2)), 0); in TestMmapWritable()
126 for (size_t i = sizeof(tmp1) + sizeof(tmp2); i < PAGE_SIZE; i++) { in TestMmapWritable()
202 char tmp2[] = "buffer which will update through fd"; in TestMmapShared() local
204 ASSERT_EQ(write(fd, tmp2, sizeof(tmp2)), sizeof(tmp2)); in TestMmapShared()
205 ASSERT_EQ(memcmp(addr1, tmp2, sizeof(tmp2)), 0); in TestMmapShared()
206 ASSERT_EQ(memcmp(addr2, tmp2, sizeof(tmp2)), 0); in TestMmapShared()