static int classmatch(const char *, int, int, const char **);
int
-fnmatch(const char *pattern, const char *string, int flags)
+rpl_fnmatch(const char *pattern, const char *string, int flags)
{
const char *stringstart;
char *newp;
#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */
#define FNM_CASEFOLD 0x10 /* Case insensitive search. */
+#define fnmatch(_a, _b, _c) rpl_fnmatch((_a), (_b), (_c))
+
int fnmatch(const char *, const char *, int);
#endif /* !_FNMATCH_H_ */
#endif
int
-glob(const char *pattern, int flags, int (*errfunc)(const char *, int),
+rpl_glob(const char *pattern, int flags, int (*errfunc)(const char *, int),
glob_t *pglob)
{
const unsigned char *patnext;
/* Free allocated data belonging to a glob_t structure. */
void
-globfree(glob_t *pglob)
+rpl_globfree(glob_t *pglob)
{
int i;
char **pp;
#define GLOB_NOSYS (-4) /* Function not supported. */
#define GLOB_ABEND GLOB_ABORTED
+#define glob(_a, _b, _c, _d) rpl_glob((_a), (_b), (_c), (_d))
+#define globfree(_a) rpl_globfree((_a))
+
int glob(const char *, int, int (*)(const char *, int), glob_t *);
void globfree(glob_t *);