Lines Matching refs:fpath
52 void smoke_test_ftw(const char* fpath, const struct stat* sb, int tflag) { in smoke_test_ftw() argument
53 ASSERT_TRUE(fpath != nullptr); in smoke_test_ftw()
60 EXPECT_EQ(-1, stat(fpath, &sb)); in smoke_test_ftw()
66 if (access(fpath, R_OK) == 0) { in smoke_test_ftw()
67 EXPECT_TRUE(tflag == FTW_D || tflag == FTW_DP) << fpath << ' ' << tflag; in smoke_test_ftw()
69 EXPECT_EQ(FTW_DNR, tflag) << fpath; in smoke_test_ftw()
72 EXPECT_EQ(FTW_SL, tflag) << fpath; in smoke_test_ftw()
74 EXPECT_EQ(FTW_F, tflag) << fpath; in smoke_test_ftw()
78 void smoke_test_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in smoke_test_nftw() argument
79 smoke_test_ftw(fpath, sb, tflag); in smoke_test_nftw()
80 ASSERT_EQ('/', fpath[ftwbuf->base - 1]) << fpath; in smoke_test_nftw()
83 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw() argument
84 smoke_test_ftw(fpath, sb, tflag); in check_ftw()
88 int check_ftw64(const char* fpath, const struct stat64* sb, int tflag) { in check_ftw64() argument
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() argument
94 smoke_test_nftw(fpath, sb, tflag, ftwbuf); in check_nftw()
98 int check_nftw64(const char* fpath, const struct stat64* sb, int tflag, FTW* ftwbuf) { in check_nftw64() argument
99 smoke_test_nftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag, ftwbuf); in check_nftw64()