Lines Matching refs:stat
52 void smoke_test_ftw(const char* fpath, const struct stat* sb, int tflag) { in smoke_test_ftw()
59 struct stat sb; in smoke_test_ftw()
60 EXPECT_EQ(-1, stat(fpath, &sb)); in smoke_test_ftw()
78 void smoke_test_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in smoke_test_nftw()
83 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw()
89 smoke_test_ftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag); in check_ftw64()
93 int check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in check_nftw()
99 smoke_test_nftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag, ftwbuf); in check_nftw64()
151 ASSERT_EQ(0, ftw(root.path, bug_28197840_ftw<struct stat>, 128)); in TEST()
153 ASSERT_EQ(0, nftw(root.path, bug_28197840_nftw<struct stat>, 128, FTW_PHYS)); in TEST()
169 ASSERT_EQ(-1, ftw("/does/not/exist", null_ftw_callback<struct stat>, 128)); in TEST()
178 ASSERT_EQ(-1, nftw("/does/not/exist", null_nftw_callback<struct stat>, 128, FTW_PHYS)); in TEST()
187 ASSERT_EQ(-1, ftw("", null_ftw_callback<struct stat>, 128)); in TEST()
196 ASSERT_EQ(-1, nftw("", null_nftw_callback<struct stat>, 128, FTW_PHYS)); in TEST()