(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / unix / sysv / linux / i386 / glob64.c
blobd3d1212f05af53530d85925e88c004683eb1a3cd
1 #include <dirent.h>
2 #include <glob.h>
3 #include <sys/stat.h>
5 #define dirent dirent64
6 #define __readdir(dirp) __readdir64 (dirp)
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)
13 #undef stat
14 #define stat stat64
15 #undef __stat
16 #define __stat(file, buf) __xstat64 (_STAT_VER, file, buf)
18 #define NO_GLOB_PATTERN_P 1
20 #define COMPILE_GLOB64 1
22 #include <sysdeps/generic/glob.c>
24 #include "shlib-compat.h"
26 libc_hidden_def (globfree64)
28 versioned_symbol (libc, __glob64, glob64, GLIBC_2_2);
29 libc_hidden_ver (__glob64, glob64)
31 #if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2)
33 #include <sysdeps/unix/sysv/linux/i386/olddirent.h>
35 int __old_glob64 (__const char *__pattern, int __flags,
36 int (*__errfunc) (__const char *, int),
37 glob64_t *__pglob);
39 #undef dirent
40 #define dirent __old_dirent64
41 #undef __readdir
42 #define __readdir(dirp) __old_readdir64 (dirp)
43 #undef glob
44 #define glob(pattern, flags, errfunc, pglob) \
45 __old_glob64 (pattern, flags, errfunc, pglob)
46 #define glob_in_dir __old_glob_in_dir
47 #define GLOB_ATTRIBUTE attribute_compat_text_section
49 #define GLOB_ONLY_P 1
51 #include <sysdeps/generic/glob.c>
53 compat_symbol (libc, __old_glob64, glob64, GLIBC_2_1);
54 #endif