mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
f417d92c17
This follows ccf970c7a
('posix: Add compat glob symbol to not follow
dangling symbols') by adding to gnu/ the same compatibility as for Linux.
* sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
(__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
* sysdeps/gnu/glob-lstat-compat.c: New file.
* sysdeps/gnu/glob64-lstat-compat.c: New file.
24 lines
495 B
C
24 lines
495 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) __xstat64 (_STAT_VER, 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)
|