Lines Matching refs:sb
27 template <typename StatFsT> void Check(StatFsT& sb) { in Check() argument
28 EXPECT_EQ(4096, static_cast<int>(sb.f_bsize)); in Check()
29 EXPECT_EQ(0U, sb.f_bfree); in Check()
30 EXPECT_EQ(0U, sb.f_ffree); in Check()
31 EXPECT_EQ(0, sb.f_fsid.__val[0]); in Check()
32 EXPECT_EQ(0, sb.f_fsid.__val[1]); in Check()
33 EXPECT_EQ(255, static_cast<int>(sb.f_namelen)); in Check()
38 EXPECT_TRUE((sb.f_flags & ST_VALID) == 0) << sb.f_flags; in Check()
42 struct statfs sb; in TEST() local
43 ASSERT_EQ(0, statfs("/proc", &sb)); in TEST()
44 Check(sb); in TEST()
48 struct statfs64 sb; in TEST() local
49 ASSERT_EQ(0, statfs64("/proc", &sb)); in TEST()
50 Check(sb); in TEST()
54 struct statfs sb; in TEST() local
56 ASSERT_EQ(0, fstatfs(fd, &sb)); in TEST()
58 Check(sb); in TEST()
62 struct statfs64 sb; in TEST() local
64 ASSERT_EQ(0, fstatfs64(fd, &sb)); in TEST()
66 Check(sb); in TEST()