|
|
1.1 ! root 1: #ifndef __FTWLK ! 2: #define __FTWLK ! 3: ! 4: /* ! 5: * Codes for the third argument to the user-supplied function ! 6: * which is passed as the second argument to ftwlk... ! 7: */ ! 8: ! 9: #define FTWLK_F 0 /* file */ ! 10: #define FTWLK_D 1 /* directory */ ! 11: #define FTWLK_DNR 2 /* directory without read permission */ ! 12: #define FTWLK_NS 3 /* unknown type, stat failed */ ! 13: #define FTWLK_DP 4 /* directory, postorder visit */ ! 14: #define FTWLK_SL 5 /* symbolic link */ ! 15: #define FTWLK_NSL 6 /* stat failed (errno = ENOENT) on symbolic link */ ! 16: ! 17: /* Values the user-supplied function may wish to assign to ! 18: component quit of struct FTWLK... ! 19: */ ! 20: ! 21: #define FTWLK_SKD 1 /* skip this directory (2nd par = FTWLK_D) */ ! 22: #define FTWLK_SKR 2 /* skip rest of current directory */ ! 23: #define FTWLK_FOLLOW 3 /* follow symbolic link */ ! 24: ! 25: struct FTWLK { int quit, base, level; ! 26: #ifndef FTWLK_more_to_come ! 27: }; ! 28: #endif ! 29: ! 30: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.