lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #include <dirent.h> |
| 2 | #include <glob.h> |
| 3 | #include <sys/stat.h> |
| 4 | |
| 5 | #define dirent dirent64 |
| 6 | #define __readdir(dirp) __readdir64 (dirp) |
| 7 | |
| 8 | #define glob_t glob64_t |
| 9 | #define glob(pattern, flags, errfunc, pglob) \ |
| 10 | glob64 (pattern, flags, errfunc, pglob) |
| 11 | #define globfree(pglob) globfree64 (pglob) |
| 12 | |
| 13 | #undef stat |
| 14 | #define stat stat64 |
| 15 | #undef __stat |
| 16 | #define __stat(file, buf) __xstat64 (_STAT_VER, file, buf) |
| 17 | |
| 18 | #define NO_GLOB_PATTERN_P 1 |
| 19 | |
| 20 | #define COMPILE_GLOB64 1 |
| 21 | |
| 22 | #include <posix/glob.c> |
| 23 | |
| 24 | libc_hidden_def (glob64) |
| 25 | libc_hidden_def (globfree64) |