Lines Matching refs:sb
133 struct stat sb; in TEST() local
134 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
135 ASSERT_EQ(0, sb.st_size); in TEST()
139 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
140 ASSERT_EQ(1, sb.st_size); in TEST()
143 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
144 ASSERT_EQ(2, sb.st_size); in TEST()
148 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
149 ASSERT_EQ(3, sb.st_size); in TEST()
152 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
153 ASSERT_EQ(4, sb.st_size); in TEST()
334 struct stat sb = {}; in TEST() local
335 ASSERT_EQ(0, fstat(fd, &sb)); in TEST()
336 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()
348 ASSERT_EQ(0, stat(final_path.c_str(), &sb)); in TEST()
349 ASSERT_EQ(perms, (sb.st_mode & ~S_IFMT)); in TEST()