/freebsd-10.2-release/contrib/binutils/bfd/ |
H A D | mep-relocs.pl | 58 ($pattern, $sign, $attrs) = $rest =~ m@(.*) ([US]) (.*)\*/@; 59 $pattern =~ s/ //g; 60 push(@pattern, $pattern); 64 printf "%4d $rel p=`$pattern' s=`$sign' a=`$attrs'\n", $#pattern; 127 $mask = $pattern[$i]; 150 if (length($pattern[$i]) == 8) { 152 } elsif ($pattern[$i] =~ /-/ || length($pattern[ [all...] |
/freebsd-10.2-release/contrib/gdb/gdb/ |
H A D | xcoffsolib.c | 62 static void sharedlibrary_command (char *pattern, int from_tty); 99 sharedlibrary_command (char *pattern, int from_tty) argument 107 if (pattern) 109 char *re_err = re_comp (pattern); 116 symbols for any that match the pattern --- or any whose symbols 117 aren't already loaded, if no pattern was given. */ 128 if (! pattern 147 if (from_tty && pattern && ! any_matches) 149 ("No loaded shared libraries match the pattern `%s'.\n", pattern); [all...] |
/freebsd-10.2-release/tools/regression/lib/libc/gen/ |
H A D | test-fnmatch.c | 38 const char *pattern; member in struct:testcase 238 if (strchr(t->pattern, '\'') != NULL || 241 if (t->flags == 0 && strcmp(t->pattern, "\\") == 0) 246 t->pattern, t->string); 248 (t->flags == 0 && strchr(t->pattern, '\\') == NULL))) 251 t->pattern, t->string); 282 result = fnmatch(t->pattern, t->string, flags); 285 if (strchr(t->pattern, '\\') == NULL && 288 result = fnmatch(t->pattern, t->string, flags); 294 if (strchr(t->pattern, '\\') ! [all...] |
/freebsd-10.2-release/gnu/usr.bin/grep/ |
H A D | exclude.c | 71 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-10.2-release/tools/tools/usbtest/ |
H A D | usbtest.c | 197 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-10.2-release/crypto/heimdal/lib/roken/ |
H A D | glob.c | 44 * 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-10.2-release/contrib/bmake/ |
H A D | var.c | 1316 * Place the word in the buffer if it matches the given pattern. 1324 * pattern Pattern the word must match 1338 void *pattern) 1341 fprintf(debug_file, "VarMatch [%s] [%s]\n", word, (char *)pattern); 1342 if (Str_Match(word, (char *)pattern)) { 1356 * Place the word in the buffer if it matches the given pattern. 1407 * Place the word in the buffer if it doesn't match the given pattern. 1415 * pattern Pattern the word must match 1429 void *pattern) 1431 if (!Str_Match(word, (char *)pattern)) { 1336 VarMatch(GNode *ctx MAKE_ATTR_UNUSED, Var_Parse_State *vpstate, char *word, Boolean addSpace, Buffer *buf, void *pattern) argument 1427 VarNoMatch(GNode *ctx MAKE_ATTR_UNUSED, Var_Parse_State *vpstate, char *word, Boolean addSpace, Buffer *buf, void *pattern) argument 1470 VarPattern *pattern = (VarPattern *)patternp; local 2145 VarGetPattern(GNode *ctxt, Var_Parse_State *vpstate MAKE_ATTR_UNUSED, int errnum, const char **tstr, int delim, int *flags, int *length, VarPattern *pattern) argument 2566 VarPattern pattern; local 2768 VarPattern pattern; local 2968 VarPattern pattern; local 3079 char *pattern; local 3173 VarPattern pattern; local 3239 VarPattern pattern; local 3286 VarREPattern pattern; local 3444 VarPattern pattern; local [all...] |
/freebsd-10.2-release/contrib/libgnuregex/ |
H A D | regex.c | 33 # 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-10.2-release/bin/pax/ |
H A D | pax.h | 74 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-10.2-release/contrib/netbsd-tests/lib/libc/regex/ |
H A D | t_regex_att.c | 60 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-10.2-release/contrib/opie/libopie/ |
H A D | accessfile.c | 91 long pattern, mask; local 114 pattern = inet_addr(cp); 119 syslog(LOG_DEBUG, "accessfile: %08x & %08x == %08x (%s)", host, mask, pattern, ((host & mask) == pattern) ? "true" : "false"); 121 if ((host & mask) == pattern) {
|
/freebsd-10.2-release/contrib/gcc/ |
H A D | gensupport.c | 156 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 D | genrecog.c | 30 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-10.2-release/crypto/openssh/openbsd-compat/ |
H A D | glob.c | 47 * Set in gl_flags if pattern contained a globbing character. 49 * Same as GLOB_NOCHECK, but it will only append pattern if it did 177 glob(const char *pattern, int flags, int (*errfunc)(const char *, int), argument 185 if (strnlen(pattern, PATH_MAX) == PATH_MAX) 188 patnext = (u_char *) pattern; 231 * Expand recursively a glob {} pattern. When there is no more expansion 236 globexp1(const Char *pattern, glob_t *pglob, struct glob_lim *limitp) argument 238 const Char* ptr = pattern; 241 if (pattern[0] == LBRACE && pattern[ 257 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, struct glob_lim *limitp) argument 362 globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob) argument 439 const Char *pattern = *patternp + 1; local 471 glob0(const Char *pattern, glob_t *pglob, struct glob_lim *limitp) argument 609 glob1(Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp) argument 627 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp) argument 695 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-10.2-release/sys/dev/syscons/star/ |
H A D | star_saver.c | 58 static u_char pattern[] = {"...........++++*** "}; local 99 sc->scr_map[pattern[stars[cell][1]]], 101 if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) {
|
/freebsd-10.2-release/contrib/tcsh/ |
H A D | glob.c | 47 * 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-10.2-release/contrib/less/ |
H A D | search.c | 12 * Routines to search a file for a pattern. 16 #include "pattern.h" 61 * search pattern and filter pattern. 98 * Compile and save a search pattern. 101 set_pattern(info, pattern, search_type) 103 char *pattern; 107 if (pattern == NULL) 109 else if (compile_pattern(pattern, search_type, &info->compiled) < 0) 116 if (pattern ! 921 char *pattern; local [all...] |
/freebsd-10.2-release/lib/libc/gen/ |
H A D | glob.c | 55 * 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-10.2-release/usr.bin/grep/ |
H A D | grep.c | 71 /* 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-10.2-release/contrib/ncurses/menu/ |
H A D | m_pattern.c | 46 | 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 D | m_driver.c | 44 /* 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)++] = (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-10.2-release/contrib/libarchive/test_utils/ |
H A D | test_utils.c | 32 /* 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-10.2-release/usr.sbin/bsdconfig/includes/ |
H A D | includes | 67 local pattern="${FUNC_PATTERN:-.*}" 70 -v re="$pattern" \
|
/freebsd-10.2-release/usr.sbin/pkg_install/lib/ |
H A D | match.c | 147 pattern_match(match_t MatchType, char *pattern, const char *pkgname) argument 156 condition = strpbrk(pattern, "<>="); 159 /* yes, isolate the pattern from the condition ... */ 160 if (condition > pattern && condition[-1] == '!') 175 errcode = rex_match(pattern, fname, MatchType == MATCH_EREGEX ? 1 : 0); 179 errcode = (csh_match(pattern, fname, 0) == 0) ? 1 : 0; 182 errcode = (strcmp(pattern, fname) == 0) ? 1 : 0; 193 /* restore the pattern */ 419 * Returns 1 if specified pkgname matches RE pattern. 424 rex_match(const char *pattern, cons argument 456 csh_match(const char *pattern, const char *string, int flags) argument [all...] |
/freebsd-10.2-release/usr.sbin/pkg_install/version/ |
H A D | perform.c | 109 warnx("no packages match pattern"); 356 version_match(char *pattern, const char *pkgname) argument 378 } else if (isURL(pattern)) { 379 fp = fetchGetURL(pattern, ""); 383 errx(2, "Unable to open %s.", pattern); 384 } else if (pattern[0] == '/') { 385 fp = fopen(pattern, "r"); 389 errx(2, "Unable to open %s.", pattern); 390 } else if (strcmp(pattern, "-") == 0) { 394 ret = pattern_match(MATCH_GLOB, pattern, pkgnam [all...] |