about summary refs log tree commit diff
path: root/sysdeps/gnu/glob64.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-07 17:27:59 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-07 17:27:59 +0000
commitaf58d8a27350eac80504f83c091d79a08187d4bb (patch)
tree971d13954174efef6b8cec8c34982cb28134161f /sysdeps/gnu/glob64.c
parent9495793d2a467e7be150fd71a7d6bb90cc86afce (diff)
downloadglibc-af58d8a27350eac80504f83c091d79a08187d4bb.tar.gz
glibc-af58d8a27350eac80504f83c091d79a08187d4bb.tar.xz
glibc-af58d8a27350eac80504f83c091d79a08187d4bb.zip
Update.
2001-01-07  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/glob64.c: Moved to ...
	* sysdeps/gnu/glob64.c: ...here.  New file.
Diffstat (limited to 'sysdeps/gnu/glob64.c')
-rw-r--r--sysdeps/gnu/glob64.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/gnu/glob64.c b/sysdeps/gnu/glob64.c
new file mode 100644
index 0000000000..7fb4654b8b
--- /dev/null
+++ b/sysdeps/gnu/glob64.c
@@ -0,0 +1,20 @@
+#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) __xstat64 (_STAT_VER, file, buf)
+
+#define NO_GLOB_PATTERN_P 1
+
+#include <sysdeps/generic/glob.c>