Searched refs:pattern (Results 26 - 50 of 224) sorted by relevance

123456789

/freebsd-11.0-release/lib/libc/tests/gen/
H A Dtest-fnmatch.c60 if (strchr(t->pattern, '\'') != NULL ||
63 if (t->flags == 0 && strcmp(t->pattern, "\\") == 0)
68 t->pattern, t->string);
70 (t->flags == 0 && strchr(t->pattern, '\\') == NULL)))
73 t->pattern, t->string);
H A Dfnmatch_test.c85 result = fnmatch(t->pattern, t->string, flags);
88 if (strchr(t->pattern, '\\') == NULL &&
91 result = fnmatch(t->pattern, t->string, flags);
96 if (strchr(t->pattern, '\\') != NULL &&
101 result = fnmatch(t->pattern, t->string, flags);
106 if ((t->string[0] != '.' || t->pattern[0] == '.' ||
110 result = fnmatch(t->pattern, t->string, flags);
119 result = fnmatch(t->pattern, t->string, flags);
124 if ((((t->string[0] != '.' || t->pattern[0] == '.') &&
129 result = fnmatch(t->pattern,
[all...]
/freebsd-11.0-release/gnu/usr.bin/grep/
H A Dexclude.c71 add_exclude (struct exclude *ex, char const *pattern) argument
78 ex->exclude[ex->exclude_count++] = pattern;
89 char const *pattern; local
118 for (pattern = p = buf, lim = buf + buf_count; p <= lim; p++)
122 (*add_func) (ex, pattern);
123 pattern = p + 1;
/freebsd-11.0-release/tools/tools/usbtest/
H A Dusbtest.c197 char pattern[G_AUDIO_MAX_STRLEN] = {"0123456789abcdef"}; local
214 printf("WARNING: Could not set pattern interval "
226 error = sysctlbyname("hw.usb.g_audio.pattern", NULL, NULL,
227 &pattern, strlen(pattern));
230 printf("WARNING: Could not set audio pattern "
231 "to '%s' (error=%d)\n", pattern, errno);
238 "5) Change DTMF pattern: '%s'\n"
239 "6) Change pattern advance interval: %d ms\n"
247 pattern, pattern_interva
318 char pattern[G_KEYBOARD_MAX_STRLEN] = {"abcdefpattern"}; local
526 char pattern[G_MODEM_MAX_STRLEN] = {"abcdefpattern"}; local
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/roken/
H A Dglob.c44 * Set in gl_flags if pattern contained a globbing character.
46 * Same as GLOB_NOCHECK, but it will only append pattern if it did
168 glob(const char *pattern, argument
177 patnext = (const u_char *) pattern;
215 * Expand recursively a glob {} pattern. When there is no more expansion
219 static int globexp1(const Char *pattern, glob_t *pglob) argument
221 const Char* ptr = pattern;
225 if (pattern[0] == CHAR_LBRACE && pattern[1] == CHAR_RBRACE && pattern[
241 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, int *rv) argument
345 globtilde(const Char *pattern, Char *patbuf, glob_t *pglob) argument
404 glob0(const Char *pattern, glob_t *pglob) argument
494 glob1(Char *pattern, glob_t *pglob, size_t *limit) argument
519 glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob, size_t *limit) argument
570 glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, glob_t *pglob, size_t *limit) argument
[all...]
/freebsd-11.0-release/contrib/bmake/
H A Dvar.c1337 * Place the word in the buffer if it matches the given pattern.
1345 * pattern Pattern the word must match
1359 void *pattern)
1362 fprintf(debug_file, "VarMatch [%s] [%s]\n", word, (char *)pattern);
1363 if (Str_Match(word, (char *)pattern)) {
1377 * Place the word in the buffer if it matches the given pattern.
1428 * Place the word in the buffer if it doesn't match the given pattern.
1436 * pattern Pattern the word must match
1450 void *pattern)
1452 if (!Str_Match(word, (char *)pattern)) {
1357 VarMatch(GNode *ctx MAKE_ATTR_UNUSED, Var_Parse_State *vpstate, char *word, Boolean addSpace, Buffer *buf, void *pattern) argument
1448 VarNoMatch(GNode *ctx MAKE_ATTR_UNUSED, Var_Parse_State *vpstate, char *word, Boolean addSpace, Buffer *buf, void *pattern) argument
1491 VarPattern *pattern = (VarPattern *)patternp; local
2166 VarGetPattern(GNode *ctxt, Var_Parse_State *vpstate MAKE_ATTR_UNUSED, int flags, const char **tstr, int delim, int *vflags, int *length, VarPattern *pattern) argument
2580 VarPattern pattern; local
2792 VarPattern pattern; local
2995 VarPattern pattern; local
3117 char *pattern; local
3211 VarPattern pattern; local
3277 VarPattern pattern; local
3340 VarREPattern pattern; local
3501 VarPattern pattern; local
[all...]
/freebsd-11.0-release/contrib/libgnuregex/
H A Dregex.c33 # define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags)
44 # define re_compile_pattern(pattern, length, bufp) \
45 __re_compile_pattern (pattern, length, bufp)
/freebsd-11.0-release/bin/pax/
H A Dpax.h74 typedef struct pattern PATTERN;
168 struct pattern { struct
169 char *pstr; /* pattern to match, user supplied */
174 #define MTCH 0x1 /* pattern has been matched */
175 #define DIR_MTCH 0x2 /* pattern matched a directory */
176 struct pattern *fow; /* next pattern */
197 PATTERN *pat; /* ptr to pattern match (if any) */
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/regex/
H A Dt_regex_att.c60 fail(const char *pattern, const char *input, size_t lineno) { argument
62 "skipping failed test at line %zu (pattern=%s, input=%s)\n",
63 lineno, pattern, input);
67 bug(const char *pattern, const char *input, size_t lineno) { argument
174 if (strcmp(pattern, b[i].p) == 0 &&
176 fail(pattern, input, lineno);
406 char *name, *pattern, *input, *matches, *comment; local
436 ATF_REQUIRE_MSG((pattern = strtok(NULL, sep)) != NULL,
437 "Missing pattern at line %zu", lineno);
442 ATF_REQUIRE(strunvis(pattern, patter
[all...]
/freebsd-11.0-release/contrib/opie/libopie/
H A Daccessfile.c92 long pattern, mask; local
115 pattern = inet_addr(cp);
120 syslog(LOG_DEBUG, "accessfile: %08x & %08x == %08x (%s)", host, mask, pattern, ((host & mask) == pattern) ? "true" : "false");
122 if ((host & mask) == pattern) {
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dglob.c47 * Set in gl_flags if pattern contained a globbing character.
49 * Same as GLOB_NOCHECK, but it will only append pattern if it did
178 glob(const char *pattern, int flags, int (*errfunc)(const char *, int), argument
186 if (strnlen(pattern, PATH_MAX) == PATH_MAX)
189 patnext = (u_char *) pattern;
232 * Expand recursively a glob {} pattern. When there is no more expansion
237 globexp1(const Char *pattern, glob_t *pglob, struct glob_lim *limitp) argument
239 const Char* ptr = pattern;
242 if (pattern[0] == LBRACE && pattern[
258 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, struct glob_lim *limitp) argument
363 globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob) argument
440 const Char *pattern = *patternp + 1; local
472 glob0(const Char *pattern, glob_t *pglob, struct glob_lim *limitp) argument
610 glob1(Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp) argument
628 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp) argument
696 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *restpattern, Char *restpattern_last, glob_t *pglob, struct glob_lim *limitp) argument
[all...]
/freebsd-11.0-release/contrib/gcc/
H A Dgensupport.c156 queue_pattern (rtx pattern, struct queue_elem ***list_tail,
160 e->data = pattern;
539 collect_insn_data (rtx pattern, int *palt, int *pmax)
545 code = GET_CODE (pattern);
549 i = n_alternatives (XSTR (pattern, 2));
556 i = XINT (pattern, 0);
572 collect_insn_data (XEXP (pattern, i), palt, pmax);
576 if (XVEC (pattern, i) == NULL)
580 for (j = XVECLEN (pattern, i) - 1; j >= 0; --j)
581 collect_insn_data (XVECEXP (pattern,
154 queue_pattern(rtx pattern, struct queue_elem ***list_tail, const char *filename, int lineno) argument
536 collect_insn_data(rtx pattern, int *palt, int *pmax) argument
591 alter_predicate_for_insn(rtx pattern, int alt, int max_op, int lineno) argument
783 rtx pred, insn, pattern, split; local
[all...]
H A Dgenrecog.c30 for the pattern that matched. This is the same as the order in the
36 present, recog will accept a pattern if it matches except for
132 const char *position; /* String denoting position in pattern. */
168 /* The line number of the start of the pattern currently being processed. */
531 find_operand (rtx pattern, int n, rtx stop)
538 if (pattern == stop)
541 code = GET_CODE (pattern);
546 && XINT (pattern, 0) == n)
547 return pattern;
556 if ((r = find_operand (XEXP (pattern,
528 find_operand(rtx pattern, int n, rtx stop) argument
584 find_matching_operand(rtx pattern, int n) argument
637 validate_pattern(rtx pattern, rtx insn, rtx set, int set_code) argument
825 validate_pattern (SET_DEST (pattern), insn, pattern, '='); local
831 validate_pattern (SET_DEST (pattern), insn, pattern, '='); local
895 add_to_sequence(rtx pattern, struct decision_head *last, const char *position, enum routine_type insn_type, int top) argument
[all...]
/freebsd-11.0-release/sys/dev/syscons/star/
H A Dstar_saver.c58 static u_char pattern[] = {"...........++++*** "}; local
99 sc->scr_map[pattern[stars[cell][1]]],
101 if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) {
/freebsd-11.0-release/contrib/tcsh/
H A Dglob.c47 * Set in gl_flags if pattern contained a globbing character.
279 * The main glob() routine: compiles the pattern (optionally processing
280 * quotes), calls glob1() to do the real pattern matching, and finally
286 glob(const char *pattern, int flags, int (*errfunc) (const char *, int), argument
296 patnext = (const unsigned char *) pattern;
317 patbuf = xmalloc((strlen(pattern) + 1) * sizeof(*patbuf));
417 * If there was no match we are going to append the pattern
419 * and the pattern did not contain any magic characters
426 globextend(pattern, pglob);
431 /* copy pattern, interpretin
457 glob1(Char *pattern, glob_t *pglob, int no_match) argument
478 glob2(struct strbuf *pathbuf, const Char *pattern, glob_t *pglob, int no_match) argument
555 glob3(struct strbuf *pathbuf, const Char *pattern, const Char *restpattern, const Char *pglobstar, glob_t *pglob, int no_match) argument
[all...]
/freebsd-11.0-release/lib/libc/gen/
H A Dglob.c55 * Set in gl_flags if pattern contained a globbing character.
57 * Same as GLOB_NOCHECK, but it will only append pattern if it did
193 glob(const char * __restrict pattern, int flags, argument
203 patnext = pattern;
262 * Expand recursively a glob {} pattern. When there is no more expansion
267 globexp1(const Char *pattern, glob_t *pglob, struct glob_limit *limit) argument
269 const Char* ptr = pattern;
279 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[
296 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, int *rv, struct glob_limit *limit) argument
401 globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob) argument
467 glob0(const Char *pattern, glob_t *pglob, struct glob_limit *limit) argument
560 glob1(Char *pattern, glob_t *pglob, struct glob_limit *limit) argument
577 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, glob_t *pglob, struct glob_limit *limit) argument
644 glob3(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, Char *restpattern, glob_t *pglob, struct glob_limit *limit) argument
[all...]
/freebsd-11.0-release/usr.bin/grep/
H A Dgrep.c71 /* 5*/ "\t[-e pattern] [-f file] [--binary-files=value] [--color=when]\n",
73 /* 7*/ "\t[--null] [pattern] [file ...]\n",
88 struct pat *pattern; variable in typeref:struct:pat
118 bool wflag; /* -w: pattern must start and end on word boundaries */
119 bool xflag; /* -x: pattern must match entire line */
224 * Adds a searching pattern to the internal array.
230 /* Do not add further pattern is we already match everything */
238 free(pattern[i].pat);
240 pattern = grep_realloc(pattern, sizeo
[all...]
/freebsd-11.0-release/contrib/ncurses/menu/
H A Dm_pattern.c46 | Description : Return the value of the pattern buffer.
48 | Return Values : NULL - if there is no pattern buffer allocated
49 | EmptyString - if there is a pattern buffer but no
50 | pattern is stored
59 returnPtr(menu ? (menu->pattern ? menu->pattern : empty) : 0);
66 | Description : Set the match pattern for a menu and position to the
70 | E_BAD_ARGUMENT - invalid menu or pattern pointer
73 | E_NO_MATCH - no item matches pattern
H A Dm_driver.c44 /* Remove the last character from the match pattern buffer */
46 (menu)->pattern[--((menu)->pindex)] = '\0'
48 /* Add a new character to the match pattern buffer */
50 { (menu)->pattern[((menu)->pindex)++] = (char) (ch);\
51 (menu)->pattern[(menu)->pindex] = '\0'; }
102 | the current pattern and the next item matching
103 | this pattern is searched.
104 | - NUL; the pattern stays as it is and the next item
105 | matching the pattern is searched
106 | - BS; the pattern stay
[all...]
/freebsd-11.0-release/contrib/libarchive/test_utils/
H A Dtest_utils.c32 /* Filter tests against a glob pattern. Returns non-zero if test matches
33 * pattern, zero otherwise. A '^' at the beginning of the pattern negates
37 test_filter(const char *pattern, const char *test) argument
41 const char *p = pattern;
/freebsd-11.0-release/usr.sbin/bsdconfig/includes/
H A Dincludes.sh67 local pattern="${FUNC_PATTERN:-.*}"
70 -v re="$pattern" \
/freebsd-11.0-release/usr.bin/grep/regex/
H A Dtre-fastmatch.c51 * Clean up if pattern compilation fails.
55 if (fg->pattern) \
56 xfree(fg->pattern); \
68 * matching is based on bit pattern not character representations
83 * Converts the wide string pattern to SB/MB string and stores
84 * it in fg->pattern. Sets fg->len to the byte length of the
95 fg->pattern = xmalloc(siz + 1); \
96 if (fg->pattern == NULL) \
98 wcstombs(fg->pattern, fg->wpattern, siz); \
99 fg->pattern[si
[all...]
/freebsd-11.0-release/contrib/libarchive/tar/
H A Dsubst.c75 char *pattern; local
100 pattern = malloc(end_pattern - rule_text);
101 if (pattern == NULL)
103 memcpy(pattern, rule_text + 1, end_pattern - rule_text - 1);
104 pattern[end_pattern - rule_text - 1] = '\0';
106 if ((r = regcomp(&rule->re, pattern, REG_BASIC)) != 0) {
111 free(pattern);
/freebsd-11.0-release/contrib/subversion/subversion/svn/
H A Dauth-cmd.c142 match_pattern(const char *pattern, const char *value, argument
145 const char *p = apr_psprintf(scratch_pool, "*%s*", pattern);
153 const char *pattern,
168 if (match_pattern(pattern, value, FALSE, scratch_pool))
172 if (match_pattern(pattern, value, FALSE, scratch_pool))
177 if (match_pattern(pattern, value, TRUE, scratch_pool))
186 if (match_pattern(pattern, hostname, TRUE, scratch_pool))
212 const char *pattern = APR_ARRAY_IDX(patterns, i, const char *); local
215 *match = match_pattern(pattern, cred_kind, FALSE, iterpool);
217 *match = match_pattern(pattern, realmstrin
152 match_certificate(svn_x509_certinfo_t **certinfo, const char *pattern, const svn_string_t *ascii_cert, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
[all...]
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/aarch64/
H A Ddt_isadep.c103 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern)
116 * pattern.
118 if (strcmp("*", pattern) == 0) {
127 if (gmatch(name, pattern))
102 dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) argument

Completed in 218 milliseconds

123456789