glob64.c 495 B

1234567891011121314151617181920212223
  1. #include <dirent.h>
  2. #include <glob.h>
  3. #include <sys/stat.h>
  4. #define dirent dirent64
  5. #define __readdir(dirp) __readdir64 (dirp)
  6. #define glob_t glob64_t
  7. #define __glob __glob64
  8. #define globfree(pglob) globfree64 (pglob)
  9. #undef stat
  10. #define stat stat64
  11. #undef __stat
  12. #define __stat(file, buf) __xstat64 (_STAT_VER, file, buf)
  13. #define COMPILE_GLOB64 1
  14. #include <posix/glob.c>
  15. libc_hidden_def (__glob64)
  16. versioned_symbol (libc, __glob64, glob64, GLIBC_2_27);
  17. libc_hidden_ver (__glob64, glob64)