Lines Matching refs:flags

100 static const char *next_brace_sub (const char *begin, int flags) __THROWNL;
206 glob_lstat (glob_t *pglob, int flags, const char *fullname) in glob_lstat() argument
215 return (__glibc_unlikely (flags & GLOB_ALTDIRFUNC) in glob_lstat()
245 int flags, int (*errfunc) (const char *, int),
254 is_dir (char const *filename, int flags, glob_t const *pglob) in is_dir() argument
258 return (__glibc_unlikely (flags & GLOB_ALTDIRFUNC) in is_dir()
266 next_brace_sub (const char *cp, int flags) in next_brace_sub() argument
270 if ((flags & GLOB_NOESCAPE) == 0 && *cp == '\\') in next_brace_sub()
302 __glob (const char *pattern, int flags, int (*errfunc) (const char *, int), in __glob() argument
317 if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0) in __glob()
326 flags |= GLOB_ONLYDIR; in __glob()
328 if (!(flags & GLOB_DOOFFS)) in __glob()
333 if (!(flags & GLOB_APPEND)) in __glob()
336 if (!(flags & GLOB_DOOFFS)) in __glob()
355 if (flags & GLOB_BRACE) in __glob()
359 if (flags & GLOB_NOESCAPE) in __glob()
408 next = next_brace_sub (begin + 1, flags); in __glob()
415 flags &= ~GLOB_BRACE; in __glob()
423 rest = next_brace_sub (rest + 1, flags); in __glob()
448 ((flags & ~(GLOB_NOCHECK | GLOB_NOMAGIC)) in __glob()
457 if (!(flags & GLOB_APPEND)) in __glob()
470 next = next_brace_sub (p, flags); in __glob()
480 else if (!(flags & (GLOB_NOCHECK|GLOB_NOMAGIC))) in __glob()
505 if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && pattern[0] == '~') in __glob()
530 && (flags & GLOB_NOESCAPE) == 0)) in __glob()
552 if (__glob_pattern_p (drive_spec, !(flags & GLOB_NOESCAPE))) in __glob()
585 int orig_flags = flags; in __glob()
586 if (!(flags & GLOB_NOESCAPE) && dirname[dirlen - 1] == '\\') in __glob()
596 flags &= ~(GLOB_NOCHECK | GLOB_NOMAGIC); in __glob()
599 int val = __glob (dirname, flags | GLOB_MARK, errfunc, pglob); in __glob()
602 | (flags & GLOB_MARK)); in __glob()
603 else if (val == GLOB_NOMATCH && flags != orig_flags) in __glob()
607 flags = orig_flags; in __glob()
616 if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~') in __glob()
619 || (!(flags & GLOB_NOESCAPE) && dirname[1] == '\\' in __glob()
693 if (flags & GLOB_TILDE_CHECK) in __glob()
758 if (!(flags & GLOB_NOESCAPE)) in __glob()
881 if (flags & GLOB_TILDE_CHECK) in __glob()
901 if (flags & GLOB_TILDE_CHECK) in __glob()
933 if (flags & GLOB_MARK && is_dir (dirname, flags, pglob)) in __glob()
958 pglob->gl_flags = flags; in __glob()
963 meta = __glob_pattern_type (dirname, !(flags & GLOB_NOESCAPE)); in __glob()
976 if (!(flags & GLOB_NOESCAPE) && dirlen > 0 && dirname[dirlen - 1] == '\\') in __glob()
987 if (__glibc_unlikely ((flags & GLOB_ALTDIRFUNC) != 0)) in __glob()
999 ((flags & (GLOB_ERR | GLOB_NOESCAPE | GLOB_ALTDIRFUNC)) in __glob()
1004 if ((flags & GLOB_NOCHECK) == 0 || status != GLOB_NOMATCH) in __glob()
1021 ((flags | GLOB_APPEND) in __glob()
1050 flags |= GLOB_MAGCHAR; in __glob()
1059 if (flags & GLOB_NOCHECK) in __glob()
1092 pglob->gl_flags = flags; in __glob()
1107 int orig_flags = flags; in __glob()
1131 flags &= ~(GLOB_NOCHECK | GLOB_NOMAGIC); in __glob()
1132 status = glob_in_dir (filename, dirname, flags, errfunc, pglob, in __glob()
1136 if (status == GLOB_NOMATCH && flags != orig_flags in __glob()
1141 flags = orig_flags; in __glob()
1163 if (flags & GLOB_MARK) in __glob()
1169 if (is_dir (pglob->gl_pathv[i], flags, pglob)) in __glob()
1185 if (!(flags & GLOB_NOSORT)) in __glob()
1281 glob_in_dir (const char *pattern, const char *directory, int flags, in glob_in_dir() argument
1309 meta = __glob_pattern_type (pattern, !(flags & GLOB_NOESCAPE)); in glob_in_dir()
1310 if (meta == GLOBPAT_NONE && (flags & (GLOB_NOCHECK|GLOB_NOMAGIC))) in glob_in_dir()
1315 flags |= GLOB_NOCHECK; in glob_in_dir()
1337 if (glob_lstat (pglob, flags, fullname) == 0 in glob_in_dir()
1341 flags |= GLOB_NOCHECK; in glob_in_dir()
1348 stream = (__builtin_expect (flags & GLOB_ALTDIRFUNC, 0) in glob_in_dir()
1355 || (flags & GLOB_ERR))) in glob_in_dir()
1361 int fnm_flags = ((!(flags & GLOB_PERIOD) ? FNM_PERIOD : 0) in glob_in_dir()
1362 | ((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0)); in glob_in_dir()
1363 flags |= GLOB_MAGCHAR; in glob_in_dir()
1369 if (__builtin_expect (flags & GLOB_ALTDIRFUNC, 0)) in glob_in_dir()
1385 if (flags & GLOB_ONLYDIR) in glob_in_dir()
1393 if (__glibc_unlikely (dfd < 0 || flags & GLOB_ALTDIRFUNC)) in glob_in_dir()
1404 if (! is_dir (s.data, flags, pglob)) in glob_in_dir()
1451 if (nfound == 0 && (flags & GLOB_NOCHECK)) in glob_in_dir()
1531 pglob->gl_flags = flags; in glob_in_dir()
1538 if (__glibc_unlikely (flags & GLOB_ALTDIRFUNC)) in glob_in_dir()