00001 #ifndef _H_MYFTW_ 00002 #define _H_MYFTW_ 00003 00009 #include <sys/stat.h> 00010 00011 /* The FLAG argument to the user function passed to ftw. */ 00012 #define MYFTW_F 0 /* Regular file. */ 00013 #define MYFTW_D 1 /* Directory. */ 00014 #define MYFTW_DNR 2 /* Unreadable directory. */ 00015 #define MYFTW_NS 3 /* Unstatable file. */ 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00021 typedef int (*myftwFunc) (void *fl, const char *name, struct stat *statp); 00022 00023 int myftw (const char *dir, int descriptors, myftwFunc func, void *fl); 00024 00025 #ifdef __cplusplus 00026 } 00027 #endif 00028 00029 #endif /* _H_MYFTW_ */