Back to index

glibc  2.9
glob64.c
Go to the documentation of this file.
00001 #include <dirent.h>
00002 #include <glob.h>
00003 #include <sys/stat.h>
00004 
00005 #define dirent dirent64
00006 #define __readdir(dirp) __readdir64 (dirp)
00007 
00008 #define glob_t glob64_t
00009 #define glob(pattern, flags, errfunc, pglob) \
00010   __glob64 (pattern, flags, errfunc, pglob)
00011 #define globfree(pglob) globfree64 (pglob)
00012 
00013 #undef stat
00014 #define stat stat64
00015 #undef __stat
00016 #define __stat(file, buf) __xstat64 (_STAT_VER, file, buf)
00017 
00018 #define NO_GLOB_PATTERN_P 1
00019 
00020 #define COMPILE_GLOB64      1
00021 
00022 #include <posix/glob.c>
00023 
00024 #include "shlib-compat.h"
00025 
00026 libc_hidden_def (globfree64)
00027 
00028 versioned_symbol (libc, __glob64, glob64, GLIBC_2_2);
00029 libc_hidden_ver (__glob64, glob64)
00030 
00031 #if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2)
00032 
00033 #include <sysdeps/unix/sysv/linux/i386/olddirent.h>
00034 
00035 int __old_glob64 (__const char *__pattern, int __flags,
00036                 int (*__errfunc) (__const char *, int),
00037                 glob64_t *__pglob);
00038 
00039 #undef dirent
00040 #define dirent __old_dirent64
00041 #undef __readdir
00042 #define __readdir(dirp) __old_readdir64 (dirp)
00043 #undef glob
00044 #define glob(pattern, flags, errfunc, pglob) \
00045   __old_glob64 (pattern, flags, errfunc, pglob)
00046 #define glob_in_dir __old_glob_in_dir
00047 #define GLOB_ATTRIBUTE attribute_compat_text_section
00048 
00049 #define GLOB_ONLY_P 1
00050 
00051 #include <posix/glob.c>
00052 
00053 compat_symbol (libc, __old_glob64, glob64, GLIBC_2_1);
00054 #endif