Lines Matching refs:flags
70 /* fnmatch() flags. */
116 fnmatch(const char *pattern, const char *string, int flags);
516 dlz_version(unsigned int *flags) {
517 UNUSED(flags);
571 fnmatch(const char *pattern, const char *string, int flags) {
579 if ((flags & FNM_LEADING_DIR) && *string == '/')
585 if (*string == '/' && (flags & FNM_PATHNAME))
587 if (*string == '.' && (flags & FNM_PERIOD) &&
589 ((flags & FNM_PATHNAME) && *(string - 1) == '/')))
599 if (*string == '.' && (flags & FNM_PERIOD) &&
601 ((flags & FNM_PATHNAME) && *(string - 1) == '/')))
606 if (flags & FNM_PATHNAME)
607 return ((flags & FNM_LEADING_DIR) ||
612 else if (c == '/' && flags & FNM_PATHNAME) {
621 flags & ~FNM_PERIOD))
623 if (test == '/' && flags & FNM_PATHNAME)
631 if (*string == '/' && (flags & FNM_PATHNAME))
633 if (*string == '.' && (flags & FNM_PERIOD) &&
635 ((flags & FNM_PATHNAME) && *(string - 1) == '/')))
638 switch (rangematch(pattern, *string, flags, &newp)) {
650 if (!(flags & FNM_NOESCAPE)) {
661 else if ((flags & FNM_CASEFOLD) &&
674 rangematch(const char *pattern, char test, int flags, char **newp) {
688 if (flags & FNM_CASEFOLD)
699 if (c == '\\' && !(flags & FNM_NOESCAPE))
704 if (c == '/' && (flags & FNM_PATHNAME))
707 if (flags & FNM_CASEFOLD)
713 if (c2 == '\\' && !(flags & FNM_NOESCAPE))
718 if (flags & FNM_CASEFOLD)