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 statfs sb; in TEST() local
50 ASSERT_EQ(-1, statfs("/does-not-exist", &sb)); in TEST()
55 struct statfs64 sb; in TEST() local
56 ASSERT_EQ(0, statfs64("/proc", &sb)); in TEST()
57 Check(sb); in TEST()
61 struct statfs64 sb; in TEST() local
63 ASSERT_EQ(-1, statfs64("/does-not-exist", &sb)); in TEST()
68 struct statfs sb; in TEST() local
70 ASSERT_EQ(0, fstatfs(fd, &sb)); in TEST()
72 Check(sb); in TEST()
76 struct statfs sb; in TEST() local
78 ASSERT_EQ(-1, fstatfs(-1, &sb)); in TEST()
83 struct statfs64 sb; in TEST() local
85 ASSERT_EQ(0, fstatfs64(fd, &sb)); in TEST()
87 Check(sb); in TEST()
91 struct statfs sb; in TEST() local
93 ASSERT_EQ(-1, fstatfs(-1, &sb)); in TEST()