glibc/include/ftw.h
Adhemerval Zanella 19873b18b0 io: Add ftw64 with 64-bit time_t support
Similar to fts, ftw 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>
2021-06-15 10:42:11 -03:00

20 lines
505 B
C

#ifndef _FTW_H
#include <io/ftw.h>
#ifndef _ISOMAC
# if __TIMESIZE != 64
# include <sys/stat.h>
typedef int (*__ftw64_time64_func_t) (const char *,
const struct __stat64_t64 *, int);
typedef int (*__nftw64_time64_func_t) (const char *,
const struct __stat64_t64 *, int,
struct FTW *);
extern int __ftw64_time64 (const char *, __ftw64_time64_func_t, int);
extern int __nftw64_time64 (const char *, __nftw64_time64_func_t, int, int);
# endif
#endif
#endif /* _FTW_H */