[uClibc-cvs] uClibc/libc/misc/glob glob.c,1.5,1.6
Erik Andersen
andersen at uclibc.org
Sun Oct 12 04:19:42 UTC 2003
Update of /var/cvs/uClibc/libc/misc/glob
In directory winder:/tmp/cvs-serv23441
Modified Files:
glob.c
Log Message:
Sigh. It seems that csh wants glob_pattern_p(), we need to
export it,
Index: glob.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/glob/glob.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- glob.c 29 Apr 2003 07:25:59 -0000 1.5
+++ glob.c 12 Oct 2003 04:19:38 -0000 1.6
@@ -15,6 +15,7 @@
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
+#include <features.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@@ -27,11 +28,11 @@
#include <glob.h>
extern __ptr_t (*__glob_opendir_hook) __P ((const char *directory));
+extern int glob_pattern_p __P ((__const char *__pattern, int __quote));
extern void (*__glob_closedir_hook) __P ((__ptr_t stream));
extern const char *(*__glob_readdir_hook) __P ((__ptr_t stream));
-static int glob_pattern_p __P ((const char *pattern, int quote));
static int glob_in_dir __P ((const char *pattern, const char *directory,
int flags,
int (*errfunc) __P ((const char *, int)),
@@ -333,10 +334,7 @@
/* Return nonzero if PATTERN contains any metacharacters.
Metacharacters can be quoted with backslashes if QUOTE is nonzero. */
-static int
-glob_pattern_p (pattern, quote)
- const char *pattern;
- int quote;
+int glob_pattern_p(const char *pattern, int quote)
{
register const char *p;
int open = 0;
More information about the uClibc-cvs
mailing list