home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / rpm / build / myftw.h < prev    next >
C/C++ Source or Header  |  1997-09-17  |  469b  |  19 lines

  1. /* myftw.h -- ftw() using lstat() instead of stat() */
  2.  
  3. #ifndef _MYFTW_H_
  4. #define _MYFTW_H_
  5.  
  6. /* The FLAG argument to the user function passed to ftw.  */
  7. #define MYFTW_F        0        /* Regular file.  */
  8. #define MYFTW_D        1        /* Directory.  */
  9. #define MYFTW_DNR    2        /* Unreadable directory.  */
  10. #define MYFTW_NS    3        /* Unstatable file.  */
  11.  
  12. int myftw (const char *dir,
  13.        int (*func) (const char *file,
  14.             struct stat *status,
  15.             int flag),
  16.        int descriptors);
  17.  
  18. #endif _MYFTW_H_
  19.