Lines Matching refs:sb
49 struct stat sb; in TEST() local
50 ASSERT_EQ(0, fstat(fd, &sb)); in TEST()
51 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST()
52 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST()
89 struct stat sb; in TEST() local
90 ASSERT_EQ(0, stat(path.c_str(), &sb)); in TEST()
91 ASSERT_TRUE(S_ISFIFO(sb.st_mode)); in TEST()
100 struct stat64 sb; in TEST() local
101 ASSERT_EQ(0, stat64("/proc/version", &sb)); in TEST()
102 ASSERT_EQ(0, lstat64("/proc/version", &sb)); in TEST()
104 ASSERT_EQ(0, fstat64(fd, &sb)); in TEST()
114 struct stat64 sb; in TEST() local
115 ASSERT_EQ(0, stat64("/proc/version", &sb)); in TEST()
116 EXPECT_EQ(sb.st_ino, sx.stx_ino); in TEST()
117 EXPECT_EQ(sb.st_mode, sx.stx_mode); in TEST()
171 struct stat sb; in AssertFileModeEquals() local
172 ASSERT_EQ(0, stat(filename, &sb)); in AssertFileModeEquals()
174 ASSERT_EQ(expected_mode & mask, static_cast<mode_t>(sb.st_mode) & mask); in AssertFileModeEquals()
228 struct stat sb; in AssertSymlinkModeEquals() local
229 ASSERT_EQ(0, fstatat(AT_FDCWD, linkname, &sb, AT_SYMLINK_NOFOLLOW)); in AssertSymlinkModeEquals()
231 ASSERT_EQ(expected_mode & mask, static_cast<mode_t>(sb.st_mode) & mask); in AssertSymlinkModeEquals()