|
Packit Service |
82fcde |
#include <shlib-compat.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2) \
|
|
Packit Service |
82fcde |
&& !defined(GLOB_NO_OLD_VERSION)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <dirent.h>
|
|
Packit Service |
82fcde |
#include <glob.h>
|
|
Packit Service |
82fcde |
#include <sys/stat.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <olddirent.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
int __old_glob64 (const char *__pattern, int __flags,
|
|
Packit Service |
82fcde |
int (*__errfunc) (const char *, int),
|
|
Packit Service |
82fcde |
glob64_t *__pglob);
|
|
Packit Service |
82fcde |
libc_hidden_proto (__old_glob64);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define dirent __old_dirent64
|
|
Packit Service |
82fcde |
#define GL_READDIR(pglob, stream) \
|
|
Packit Service |
82fcde |
((struct __old_dirent64 *) (pglob)->gl_readdir (stream))
|
|
Packit Service |
82fcde |
#undef __readdir
|
|
Packit Service |
82fcde |
#define __readdir(dirp) __old_readdir64 (dirp)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define glob_t glob64_t
|
|
Packit Service |
82fcde |
#define __glob(pattern, flags, errfunc, pglob) \
|
|
Packit Service |
82fcde |
__old_glob64 (pattern, flags, errfunc, pglob)
|
|
Packit Service |
82fcde |
#define globfree(pglob) globfree64(pglob)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define convert_dirent __old_convert_dirent
|
|
Packit Service |
82fcde |
#define glob_in_dir __old_glob_in_dir
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#undef stat
|
|
Packit Service |
82fcde |
#define stat stat64
|
|
Packit Service |
82fcde |
#undef __stat
|
|
Packit Service |
82fcde |
#define __stat(file, buf) __xstat64 (_STAT_VER, file, buf)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Avoid calling gl_lstat with GLOB_ALTDIRFUNC. */
|
|
Packit Service |
82fcde |
#define GLOB_NO_LSTAT
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define GLOB_ATTRIBUTE attribute_compat_text_section
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <posix/glob.c>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
libc_hidden_def (__old_glob64);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
compat_symbol (libc, __old_glob64, glob64, GLIBC_2_1);
|
|
Packit Service |
82fcde |
#endif
|