glibc/sysdeps/gnu/glob64.c
Adhemerval Zanella 04986243d1 Remove internal usage of extensible stat functions
It replaces the internal usage of __{f,l}xstat{at}{64} with the
__{f,l}stat{at}{64}.  It should not change the generate code since
sys/stat.h explicit defines redirections to internal calls back to
xstat* symbols.

Checked with a build for all affected ABIs.  I also check on
x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2020-09-11 14:35:32 -03:00

24 lines
483 B
C

#include <dirent.h>
#include <glob.h>
#include <sys/stat.h>
#define dirent dirent64
#define __readdir(dirp) __readdir64 (dirp)
#define glob_t glob64_t
#define __glob __glob64
#define globfree(pglob) globfree64 (pglob)
#undef stat
#define stat stat64
#undef __stat
#define __stat(file, buf) __stat64 (file, buf)
#define COMPILE_GLOB64 1
#include <posix/glob.c>
libc_hidden_def (__glob64)
versioned_symbol (libc, __glob64, glob64, GLIBC_2_27);
libc_hidden_ver (__glob64, glob64)