5 #define dirent dirent64
6 #define __readdir(dirp) __readdir64 (dirp)
8 #define glob_t glob64_t
9 #define glob(pattern, flags, errfunc, pglob) \
10 __glob64 (pattern, flags, errfunc, pglob)
11 #define globfree(pglob) globfree64 (pglob)
16 #define __stat(file, buf) __xstat64 (_STAT_VER, file, buf)
18 #define NO_GLOB_PATTERN_P 1
20 #define COMPILE_GLOB64 1
22 #include <sysdeps/generic/glob.c>
24 #include "shlib-compat.h"
26 libc_hidden_def (globfree64
)
28 versioned_symbol (libc
, __glob64
, glob64
, GLIBC_2_2
);
29 libc_hidden_ver (__glob64
, glob64
)
31 #if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2)
33 #include <sysdeps/unix/sysv/linux/i386/olddirent.h>
35 int __old_glob64 (__const
char *__pattern
, int __flags
,
36 int (*__errfunc
) (__const
char *, int),
40 #define dirent __old_dirent64
42 #define __readdir(dirp) __old_readdir64 (dirp)
44 #define glob(pattern, flags, errfunc, pglob) \
45 __old_glob64 (pattern, flags, errfunc, pglob)
46 #define glob_in_dir __old_glob_in_dir
47 #define GLOB_ATTRIBUTE attribute_compat_text_section
51 #include <sysdeps/generic/glob.c>
53 compat_symbol (libc
, __old_glob64
, glob64
, GLIBC_2_1
);