Lines Matching refs:sb
47 struct stat sb; in TEST() local
48 ASSERT_EQ(0, fstat(fd, &sb)); in TEST()
49 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST()
50 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST()
87 struct stat sb; in TEST() local
88 ASSERT_EQ(0, stat(path.c_str(), &sb)); in TEST()
89 ASSERT_TRUE(S_ISFIFO(sb.st_mode)); in TEST()
98 struct stat64 sb; in TEST() local
99 ASSERT_EQ(0, stat64("/proc/version", &sb)); in TEST()
100 ASSERT_EQ(0, lstat64("/proc/version", &sb)); in TEST()
102 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()
166 struct stat sb; in AssertFileModeEquals() local
167 ASSERT_EQ(0, stat(filename, &sb)); in AssertFileModeEquals()
169 ASSERT_EQ(expected_mode & mask, static_cast<mode_t>(sb.st_mode) & mask); in AssertFileModeEquals()
223 struct stat sb; in AssertSymlinkModeEquals() local
224 ASSERT_EQ(0, fstatat(AT_FDCWD, linkname, &sb, AT_SYMLINK_NOFOLLOW)); in AssertSymlinkModeEquals()
226 ASSERT_EQ(expected_mode & mask, static_cast<mode_t>(sb.st_mode) & mask); in AssertSymlinkModeEquals()