glob64.c 640 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <_lfs_64.h>
  7. #include <dirent.h>
  8. #include <glob.h>
  9. #include <sys/stat.h>
  10. #define dirent dirent64
  11. #define __readdir(dirp) readdir64 (dirp)
  12. #define __readdir64(dirp) readdir64 (dirp)
  13. #define glob_t glob64_t
  14. #define glob(pattern, flags, errfunc, pglob) \
  15. glob64 (pattern, flags, errfunc, pglob)
  16. #define globfree(pglob) globfree64 (pglob)
  17. #undef stat
  18. #define stat stat64
  19. #undef __stat
  20. #define __stat(file, buf) stat64(file, buf)
  21. #define COMPILE_GLOB64 1
  22. #include "glob.c"