Lines Matching refs:flags
154 int no_leading_period, int flags))
158 internal_fnmatch (pattern, string, no_leading_period, flags) in internal_fnmatch() argument
162 int flags;
169 # define FOLD(c) ((flags & FNM_CASEFOLD) ? tolower (c) : (c))
171 # define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c))
183 else if (*n == '/' && (flags & FNM_FILE_NAME))
187 || (n[-1] == '/' && (flags & FNM_FILE_NAME))))
192 if (!(flags & FNM_NOESCAPE))
207 || (n[-1] == '/' && (flags & FNM_FILE_NAME))))
212 if (*n == '/' && (flags & FNM_FILE_NAME))
233 return ((flags & FNM_FILE_NAME) && strchr (n, '/') != NULL
239 endp = __strchrnul (n, (flags & FNM_FILE_NAME) ? '/' : '\0');
243 int flags2 = ((flags & FNM_FILE_NAME)
244 ? flags : (flags & ~FNM_PERIOD));
251 && (flags
257 else if (c == '/' && (flags & FNM_FILE_NAME))
262 && (internal_fnmatch (p, n + 1, flags & FNM_PERIOD,
263 flags) == 0))
268 int flags2 = ((flags & FNM_FILE_NAME)
269 ? flags : (flags & ~FNM_PERIOD));
271 if (c == '\\' && !(flags & FNM_NOESCAPE))
280 && (flags
305 && (flags
309 if (*n == '/' && (flags & FNM_FILE_NAME))
322 if (!(flags & FNM_NOESCAPE) && c == '\\')
407 if (!(flags & FNM_NOESCAPE) && cend == '\\')
436 if (!(flags & FNM_NOESCAPE) && c == '\\')
469 if ((flags & FNM_LEADING_DIR) && *n == '/')
480 fnmatch (pattern, string, flags) in fnmatch() argument
483 int flags;
485 return internal_fnmatch (pattern, string, flags & FNM_PERIOD, flags);