Lines Matching refs:FTW
17 #include <ftw.h>
78 void sanity_check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) {
93 int check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) {
98 int check_nftw64(const char* fpath, const struct stat64* sb, int tflag, FTW* ftwbuf) {
103 TEST(ftw, ftw) {
106 ASSERT_EQ(0, ftw(root.path, check_ftw, 128));
109 TEST(ftw, ftw64) {
115 TEST(ftw, nftw) {
121 TEST(ftw, nftw64) {
134 static int bug_28197840_nftw(const char* path, const StatT* sb, int flag, FTW*) {
138 TEST(ftw, bug_28197840) {
151 ASSERT_EQ(0, ftw(root.path, bug_28197840_ftw<struct stat>, 128));
163 static int null_nftw_callback(const char*, const StatT*, int, FTW*) {
167 TEST(ftw, ftw_non_existent_ENOENT) {
169 ASSERT_EQ(-1, ftw("/does/not/exist", null_ftw_callback<struct stat>, 128));
176 TEST(ftw, nftw_non_existent_ENOENT) {
185 TEST(ftw, ftw_empty_ENOENT) {
187 ASSERT_EQ(-1, ftw("", null_ftw_callback<struct stat>, 128));
194 TEST(ftw, nftw_empty_ENOENT) {