# myftw.h

Go to the documentation of this file.

    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
    00024 int myftw (const char *dir, int descriptors, myftwFunc func, void *fl)
    00025         /*@globals fileSystem @*/
    00026         /*@modifies *fl, fileSystem @*/;
    00027
    00028 #ifdef __cplusplus
    00029 }
    00030 #endif
    00031
    00032 #endif /* _H_MYFTW_ */