aboutsummaryrefslogtreecommitdiff
path: root/posix/glob.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-01 03:04:49 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-01 03:04:49 +0000
commitea1bfb072cb7480fb47c1b7b72f08eb1ec1171ee (patch)
tree32ebae4b7569f5a847293e684012859a3b9299b5 /posix/glob.h
parent56bd58554f695b46acb80e11f8253198ab33c718 (diff)
downloadglibc-ea1bfb072cb7480fb47c1b7b72f08eb1ec1171ee.tar
glibc-ea1bfb072cb7480fb47c1b7b72f08eb1ec1171ee.tar.gz
glibc-ea1bfb072cb7480fb47c1b7b72f08eb1ec1171ee.tar.bz2
glibc-ea1bfb072cb7480fb47c1b7b72f08eb1ec1171ee.zip
Update.
1999-09-11 Paul Eggert <eggert@twinsun.com> * posix/glob.h (glob): If #defining to glob64, do this before declaring it, so that all declarations and uses match, and do not declare glob64, to avoid a declaration clash. (globfree): Likewise with globfree64. 1999-09-08 Eli Zaretskii <eliz@is.elta.co.il> * sysdeps/generic/glob.c (prefix_array) [__MSDOS__,WINDOWS32]: Keep the trailing slash unless DIRNAME is just "x:/".
Diffstat (limited to 'posix/glob.h')
-rw-r--r--posix/glob.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/posix/glob.h b/posix/glob.h
index 6a3ab1817f..d92026f794 100644
--- a/posix/glob.h
+++ b/posix/glob.h
@@ -140,6 +140,11 @@ typedef struct
} glob64_t;
#endif
+#if _FILE_OFFSET_BITS == 64 && __GNUC__ < 2
+# define glob glob64
+# define globfree globfree64
+#endif
+
/* Do glob searching for PATTERN, placing results in PGLOB.
The bits defined above may be set in FLAGS.
If a directory cannot be opened or read and ERRFUNC is not nil,
@@ -148,7 +153,7 @@ typedef struct
`glob' returns GLOB_ABEND; if it returns zero, the error is ignored.
If memory cannot be allocated for PGLOB, GLOB_NOSPACE is returned.
Otherwise, `glob' returns zero. */
-#if _FILE_OFFSET_BITS != 64
+#if _FILE_OFFSET_BITS != 64 || __GNUC__ < 2
extern int glob __P ((__const char *__pattern, int __flags,
int (*__errfunc) (__const char *, int),
glob_t *__pglob));
@@ -156,16 +161,11 @@ extern int glob __P ((__const char *__pattern, int __flags,
/* Free storage allocated in PGLOB by a previous `glob' call. */
extern void globfree __P ((glob_t *__pglob));
#else
-# if __GNUC__ >= 2
extern int glob __P ((__const char *__pattern, int __flags,
int (*__errfunc) (__const char *, int),
glob_t *__pglob)) __asm__ ("glob64");
extern void globfree __P ((glob_t *__pglob)) __asm__ ("globfree64");
-# else
-# define glob glob64
-# define globfree globfree64
-# endif
#endif
#ifdef _LARGEFILE64_SOURCE