Lines Matching refs:flags
297 int flags,
361 glob (pattern, flags, errfunc, pglob) in glob() argument
363 int flags;
373 if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0)
379 if (flags & GLOB_BRACE)
398 if (!(flags & GLOB_APPEND))
421 return glob (pattern, flags & ~GLOB_BRACE, errfunc, pglob);
435 return glob (pattern, flags & ~GLOB_BRACE, errfunc, pglob);
448 if (!(flags & GLOB_APPEND))
471 ((flags & ~(GLOB_NOCHECK|GLOB_NOMAGIC))
480 if (!(flags & GLOB_APPEND))
501 else if (!(flags & (GLOB_NOCHECK|GLOB_NOMAGIC)))
520 if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && pattern[0] == '~')
568 if (__glob_pattern_p (drive_spec, !(flags & GLOB_NOESCAPE)))
594 int val = glob (dirname, flags | GLOB_MARK, errfunc, pglob);
597 | (flags & GLOB_MARK));
602 if (!(flags & GLOB_APPEND))
611 if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~')
688 if (flags & GLOB_TILDE_CHECK)
789 if (flags & GLOB_TILDE_CHECK)
805 if ((flags & GLOB_NOCHECK)
806 || (((flags & GLOB_ALTDIRFUNC)
814 ((flags & GLOB_DOOFFS) ?
821 if (flags & GLOB_DOOFFS)
842 pglob->gl_flags = flags;
851 if (__glob_pattern_p (dirname, !(flags & GLOB_NOESCAPE)))
860 ((flags & (GLOB_ERR | GLOB_NOCHECK | GLOB_NOESCAPE))
889 ((flags | GLOB_APPEND)
914 flags |= GLOB_MAGCHAR;
923 if (flags & GLOB_NOCHECK)
933 ((flags & GLOB_DOOFFS) ?
943 if (flags & GLOB_DOOFFS)
953 if (((flags & GLOB_ALTDIRFUNC)
983 pglob->gl_flags = flags;
1000 status = glob_in_dir (filename, dirname, flags, errfunc, pglob);
1009 if ((flags & GLOB_DOOFFS) && ignore < pglob->gl_offs)
1022 if (flags & GLOB_MARK)
1028 if (((flags & GLOB_ALTDIRFUNC)
1045 if (!(flags & GLOB_NOSORT))
1050 if ((flags & GLOB_DOOFFS) && pglob->gl_offs > oldcount)
1212 glob_in_dir (pattern, directory, flags, errfunc, pglob)
1215 int flags; variable
1235 meta = __glob_pattern_p (pattern, !(flags & GLOB_NOESCAPE));
1238 if (flags & (GLOB_NOCHECK|GLOB_NOMAGIC))
1242 flags |= GLOB_NOCHECK;
1261 if (((flags & GLOB_ALTDIRFUNC)
1266 flags |= GLOB_NOCHECK;
1288 stream = ((flags & GLOB_ALTDIRFUNC)
1295 || (flags & GLOB_ERR)))
1302 int fnm_flags = ((!(flags & GLOB_PERIOD) ? FNM_PERIOD : 0)
1303 | ((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0)
1309 flags |= GLOB_MAGCHAR;
1315 struct dirent *d = ((flags & GLOB_ALTDIRFUNC)
1326 if ((flags & GLOB_ONLYDIR)
1357 if (nfound == 0 && (flags & GLOB_NOCHECK))
1379 ((flags & GLOB_DOOFFS) ? pglob->gl_offs : 0) +
1385 if (flags & GLOB_DOOFFS)
1393 pglob->gl_flags = flags;
1399 if (flags & GLOB_ALTDIRFUNC)
1411 if (flags & GLOB_ALTDIRFUNC)