mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
70961aee18
Similar to glob, fts routines passes a stat pointer that might differ of size and layout when 64-bit time API is used. Checked on i686-linux-gnu and x86_64-linux-gnu. Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
53 lines
996 B
C
53 lines
996 B
C
#ifndef _FTS_H
|
|
#include <io/fts.h>
|
|
|
|
#ifndef _ISOMAC
|
|
# if __TIMESIZE != 64
|
|
# include <sys/stat.h>
|
|
|
|
typedef struct
|
|
{
|
|
struct _ftsent64_time64 *fts_cur;
|
|
struct _ftsent64_time64 *fts_child;
|
|
struct _ftsent64_time64 **fts_array;
|
|
dev_t fts_dev;
|
|
char *fts_path;
|
|
int fts_rfd;
|
|
int fts_pathlen;
|
|
int fts_nitems;
|
|
int (*fts_compar) (const void *, const void *);
|
|
int fts_options;
|
|
} FTS64_TIME64;
|
|
|
|
typedef struct _ftsent64_time64
|
|
{
|
|
struct _ftsent64_time64 *fts_cycle;
|
|
struct _ftsent64_time64 *fts_parent;
|
|
struct _ftsent64_time64 *fts_link;
|
|
long fts_number;
|
|
void *fts_pointer;
|
|
char *fts_accpath;
|
|
char *fts_path;
|
|
int fts_errno;
|
|
int fts_symfd;
|
|
unsigned short fts_pathlen;
|
|
unsigned short fts_namelen;
|
|
|
|
ino64_t fts_ino;
|
|
dev_t fts_dev;
|
|
nlink_t fts_nlink;
|
|
|
|
short fts_level;
|
|
unsigned short fts_info;
|
|
unsigned short fts_flags;
|
|
unsigned short fts_instr;
|
|
|
|
struct __stat64_t64 *fts_statp;
|
|
char fts_name[1];
|
|
} FSTENT64_TIME64;
|
|
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* _FTS_H */
|