34 #if !defined(HAVE_FTS_OPEN) 40 #if defined(__GLIBC__) 46 # define __BEGIN_DECLS extern "C" { 47 # define __END_DECLS } 49 # define __BEGIN_DECLS 54 # define _D_EXACT_NAMLEN(d) ((d)->d_namlen) 55 # define _INCLUDE_POSIX_SOURCE 56 # define _LARGEFILE64_SOURCE 61 # define _D_EXACT_NAMLEN(d) (strlen((d)->d_name)) 62 # ifndef _INCLUDE_POSIX_SOURCE 63 # define _INCLUDE_POSIX_SOURCE 65 # ifndef _LARGEFILE64_SOURCE 66 # define _LARGEFILE64_SOURCE 72 #include <sys/types.h> 79 #ifdef __USE_FILE_OFFSET64 80 # error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64" 98 int (*fts_compar) (
const void *,
const void *)
101 DIR * (*fts_opendir) (
const char * path)
104 struct dirent * (*fts_readdir) (DIR * dir)
107 int (*fts_closedir) ( DIR * dir)
110 int (*fts_stat) (
const char * path,
struct stat * st)
113 int (*fts_lstat) (
const char * path,
struct stat * st)
117 #define FTS_COMFOLLOW 0x0001 118 #define FTS_LOGICAL 0x0002 119 #define FTS_NOCHDIR 0x0004 120 #define FTS_NOSTAT 0x0008 121 #define FTS_PHYSICAL 0x0010 122 #define FTS_SEEDOT 0x0020 123 #define FTS_XDEV 0x0040 124 #define FTS_WHITEOUT 0x0080 125 #define FTS_OPTIONMASK 0x00ff 127 #define FTS_NAMEONLY 0x0100 128 #define FTS_STOP 0x0200 154 #define FTS_ROOTPARENTLEVEL -1 155 #define FTS_ROOTLEVEL 0 160 #define FTS_DEFAULT 3 170 #define FTS_SLNONE 13 174 #define FTS_DONTCHDIR 0x01 175 #define FTS_SYMFOLLOW 0x02 180 #define FTS_NOINSTR 3 191 extern int dirfd (DIR * dirp);
200 FTSENT *fts_children (
FTS * sp,
int instr) __THROW
210 int fts_close (
FTS * sp) __THROW
222 FTS *fts_open (
char *
const * argv,
int options,
224 int (*compar) (
const FTSENT **,
const FTSENT **)) __THROW
245 int fts_set (
FTS * sp,
FTSENT * p,
int instr) __THROW
252 #if defined(__SVR4) && defined(__sun) struct _ftsent * fts_cycle
Definition: fts_sun.h:134
void * fts_pointer
Definition: fts_sun.h:140
dev_t fts_dev
Definition: fts_sun.h:151
struct _ftsent * fts_parent
Definition: fts_sun.h:136
u_short fts_namelen
Definition: fts_sun.h:148
short fts_level
Definition: fts_sun.h:156
int fts_symfd
Definition: fts_sun.h:146
int fts_rfd
Definition: fts_sun.h:94
ino_t fts_ino
Definition: fts_sun.h:150
char * fts_path
Definition: fts_sun.h:93
int fts_nitems
Definition: fts_sun.h:96
char * fts_path
Definition: fts_sun.h:144
char * fts_accpath
Definition: fts_sun.h:142
char fts_name[1]
Definition: fts_sun.h:186
Definition: fts_sun.h:132
struct stat * fts_statp
Definition: fts_sun.h:185
int fts_errno
Definition: fts_sun.h:145
nlink_t fts_nlink
Definition: fts_sun.h:152
dev_t fts_dev
Definition: fts_sun.h:91
struct _ftsent * fts_cur
Definition: fts_sun.h:86
struct _ftsent * fts_child
Definition: fts_sun.h:88
struct _ftsent ** fts_array
Definition: fts_sun.h:90
long fts_number
Definition: fts_sun.h:139
u_short fts_pathlen
Definition: fts_sun.h:147
struct _ftsent * fts_link
Definition: fts_sun.h:138
int fts_pathlen
Definition: fts_sun.h:95