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