35 #if defined(__GLIBC__) 39 #if defined(hpux) || defined(__hpux) 40 # define _INCLUDE_POSIX_SOURCE 41 # define _LARGEFILE64_SOURCE 45 #include <sys/types.h> 68 int (*fts_compar) (
const void *,
const void *)
71 DIR * (*fts_opendir) (
const char * path)
74 struct dirent * (*fts_readdir) (DIR * dir)
77 int (*fts_closedir) ( DIR * dir)
80 int (*
fts_stat) (
const char * path,
struct stat * st)
83 int (*fts_lstat) (
const char * path,
struct stat * st)
87 #define FTS_COMFOLLOW 0x0001 88 #define FTS_LOGICAL 0x0002 89 #define FTS_NOCHDIR 0x0004 90 #define FTS_NOSTAT 0x0008 91 #define FTS_PHYSICAL 0x0010 92 #define FTS_SEEDOT 0x0020 93 #define FTS_XDEV 0x0040 94 #define FTS_WHITEOUT 0x0080 95 #define FTS_OPTIONMASK 0x00ff 97 #define FTS_NAMEONLY 0x0100 98 #define FTS_STOP 0x0200 125 #define FTS_ROOTPARENTLEVEL -1 126 #define FTS_ROOTLEVEL 0 131 #define FTS_DEFAULT 3 141 #define FTS_SLNONE 13 145 #define FTS_DONTCHDIR 0x01 146 #define FTS_SYMFOLLOW 0x02 151 #define FTS_NOINSTR 3 struct _ftsent * fts_cycle
int Fts_set(FTS *sp, FTSENT *p, int instr)
Modify the traversal for a file set member.
struct _ftsent * fts_parent
int Fts_close(FTS *sp)
Destroy a file hierarchy traversal handle.
FTS * Fts_open(char *const *argv, int options, int(*compar)(const FTSENT **, const FTSENT **))
Create a handle for file hierarchy traversal.
static u_short fts_stat(FTS *sp, FTSENT *p, int follow)
FTSENT * Fts_read(FTS *sp)
Return next node in the file hierarchy traversal.
FTSENT * Fts_children(FTS *sp, int instr)
Return list of children of the current node.
struct _ftsent * fts_child
struct _ftsent ** fts_array
struct _ftsent * fts_link