about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/glob64.c
blob: 022ae54848931f3041bb88a1f1ed89e59ae11776 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <dirent.h>
#include <glob.h>
#include <sys/stat.h>

#define dirent dirent64
#define __readdir(dirp) __readdir64 (dirp)

#define glob_t glob64_t
#define glob(pattern, flags, errfunc, pglob) \
  glob64 (pattern, flags, errfunc, pglob)
#define globfree(pglob) globfree64 (pglob)

#undef stat
#define stat stat64
#undef __stat
#define __stat(file, buf) stat64 (file, buf)

#include <sysdeps/generic/glob.c>