/freebsd/contrib/tcp_wrappers/ |
H A D | tcpdchk.c | 76 static void check_daemon(char *pat); 77 static void check_user(char *pat); 78 static int check_host(char *pat); 79 static int reserved_name(char *pat); 342 static void check_daemon(char *pat) in check_daemon() argument 344 if (pat[0] == '@') { in check_daemon() 345 tcpd_warn("%s: daemon name begins with \"@\"", pat); in check_daemon() 346 } else if (pat[0] == '/') { in check_daemon() 347 tcpd_warn("%s: daemon name begins with \"/\"", pat); in check_daemon() 348 } else if (pat[0] == '.') { in check_daemon() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | match.c | 45 sm_match(str, pat) 47 const char *pat; variable 55 switch (*pat) 62 ++pat; 66 ++pat; 67 if (*pat == '\0') 74 if (sm_match(pat, str)) 82 ccstart = pat++; 84 if (*pat == '!') 87 ++pat; [all …]
|
H A D | t-match.c | 17 #define try(str, pat, want) \ argument 18 got = sm_match(str, pat); \ 22 str, pat, got ? "true" : "false");
|
/freebsd/contrib/bmake/ |
H A D | str.c | 306 Str_Match(const char *str, const char *pat) in Str_Match() argument 311 const char *fixed_pat = pat; in Str_Match() 315 pat = fixed_pat; in Str_Match() 316 for (; *pat != '\0' && *pat != '*'; str++, pat++) { in Str_Match() 320 if (*pat == '?') /* match any single character */ in Str_Match() 323 if (*pat == '[') { /* match a character from a list */ in Str_Match() 324 bool neg = pat[1] == '^'; in Str_Match() 325 pat += neg ? 2 : 1; in Str_Match() 328 if (*pat == '\0') in Str_Match() 330 if (*pat == ']' || *pat == '\0') { in Str_Match() [all …]
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | SymbolTable.cpp | 273 auto assignExact = [&](SymbolVersion pat, uint16_t id, StringRef ver) { in scanVersionScript() argument 275 assignExactVersion(pat, id, ver, /*includeNonDefault=*/false); in scanVersionScript() 277 found |= assignExactVersion({(pat.name + "@" + v.name).toStringRef(buf), in scanVersionScript() 278 pat.isExternCpp, /*hasWildCard=*/false}, in scanVersionScript() 282 pat.name + "' failed: symbol not defined"); in scanVersionScript() 284 for (SymbolVersion &pat : v.nonLocalPatterns) in scanVersionScript() 285 if (!pat.hasWildcard) in scanVersionScript() 286 assignExact(pat, v.id, v.name); in scanVersionScript() 287 for (SymbolVersion pat : v.localPatterns) in scanVersionScript() local 288 if (!pat.hasWildcard) in scanVersionScript() [all …]
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | T.int-expr | 9 $1 == "pat" { pattern = $2; next } 17 pat ab{0}c 21 pat a(b{0})c 25 pat ab{0}*c 29 pat a(b{0})*c 33 pat ab{0,}c 37 pat a(b{0,})c 41 pat ab{0,}*c 45 pat a(b{0,})*c 49 pat ab{1}c [all …]
|
H A D | T.sub | 15 pat = $1 34 # printf(" %3d: %s %s %s %s %s:\n", NR, pat, repl, str, subout, gsubout) 35 if (pat == "\"\"") pat = "" 45 sprintf("{ temp = $0; sub(/%s/, \"%s\", temp)\n", pat, repl) \ 47 subout, nt, subout, (pat " " repl " " str " " subout)) \ 48 sprintf(" gsub(/%s/, \"%s\")\n", pat, repl) \ 50 gsubout, nt, gsubout, (pat " " repl " " str " " gsubout)) \
|
/freebsd/contrib/tcsh/ |
H A D | glob.c | 700 match(const char *name, const Char *pat, const Char *patend, int m_not) in match() argument 707 patNext = pat; in match() 711 while (pat < patend || *name) { in match() 715 c = *pat; /* Only for M_MASK bits */ in match() 719 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX); in match() 723 while ((*(pat + pwk) & M_MASK) == M_ALL) { in match() 724 pat += pwk; in match() 725 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX); in match() 727 patNext = pat; in match() 729 pat += pwk; in match() [all …]
|
H A D | tw.init.c | 343 tw_cmd_start(DIR *dfd, const Char *pat) in tw_cmd_start() argument 346 USE(pat); in tw_cmd_start() 535 tw_var_start(DIR *dfd, const Char *pat) in tw_var_start() argument 537 USE(pat); in tw_var_start() 549 tw_alias_start(DIR *dfd, const Char *pat) in tw_alias_start() argument 551 USE(pat); in tw_alias_start() 563 tw_complete_start(DIR *dfd, const Char *pat) in tw_complete_start() argument 565 USE(pat); in tw_complete_start() 593 tw_logname_start(DIR *dfd, const Char *pat) in tw_logname_start() argument 595 USE(pat); in tw_logname_start() [all …]
|
H A D | tw.comp.c | 247 tw_match(const Char *str, const Char *pat, int exact) in tw_match() argument 250 int rv = exact ? Gmatch(estr = str, pat) : Gnmatch(str, pat, &estr); in tw_match() 253 xprintf("%s, ", short2str(pat)); in tw_match() 266 tw_result(const Char *act, Char **pat) in tw_result() argument 344 *pat = res = Strsave(&act[1]); in tw_result() 349 *pat = res = Strsave(&act[1]); in tw_result() 372 *pat = res = Strsave(p); in tw_result() 388 *pat = res = Strsave(&act[2]); in tw_result() 453 tw_complete(const Char *line, Char **word, Char **pat, int looking, eChar *suf) in tw_complete() argument 635 res = tw_result(com, pat); in tw_complete()
|
/freebsd/tests/sys/cddl/zfs/tests/txg_integrity/ |
H A D | fsync_integrity.c | 109 const pattern_t* pat; member 115 void get_chunk_range(const pattern_t* pat, int chunk, uint32_t* begin, uint32_t* end){ in get_chunk_range() argument 120 *begin = (uint32_t)((uint64_t)FSIZE * (uint64_t)pat->partitions[chunk - 1] >> 31); in get_chunk_range() 122 *end = (uint32_t)((uint64_t)FSIZE * (uint64_t)pat->partitions[chunk] >> 31); in get_chunk_range() 388 int chunk_idx = data->pat->permutation[perm_idx]; in worker() 397 write_chunk(data->pat, chunk_idx, thread_num); in worker() 417 int pat; in main() local 427 for(pat=0; pat < sizeof(patterns) / sizeof(patterns[0]); pat++){ in main() 429 const pattern_t *pat_p = patterns[pat]; in main() 473 thread_data[i].pat = pat_p; in main() [all …]
|
H A D | txg_integrity.c | 105 void get_chunk_range(const pattern_t* pat, int chunk, uint32_t* begin, uint32_t* end){ in get_chunk_range() argument 110 *begin = (uint32_t)((uint64_t)FSIZE * (uint64_t)pat->partitions[chunk - 1] >> 31); in get_chunk_range() 112 *end = (uint32_t)((uint64_t)FSIZE * (uint64_t)pat->partitions[chunk] >> 31); in get_chunk_range() 479 int pat; in main() local 493 for(pat=0; pat < sizeof(patterns) / sizeof(patterns[0]); pat++){ in main() 494 void *pat_p = (void *)(uintptr_t)(const void *)patterns[pat]; in main() 593 if (verify_file(outfd, patterns[pat])) { in main()
|
/freebsd/usr.bin/grep/ |
H A D | grep.c | 74 struct pat *pattern; 207 add_pattern(char *pat, size_t len) in add_pattern() argument 219 sizeof(struct pat)); in add_pattern() 221 if (len > 0 && pat[len - 1] == '\n') in add_pattern() 224 pattern[patterns].pat = grep_malloc(len + 1); in add_pattern() 225 memcpy(pattern[patterns].pat, pat, len); in add_pattern() 227 pattern[patterns].pat[len] = '\0'; in add_pattern() 235 add_fpattern(const char *pat, int mode) in add_fpattern() argument 244 fpattern[fpatterns].pat = grep_strdup(pat); in add_fpattern() 253 add_dpattern(const char *pat, int mode) in add_dpattern() argument [all …]
|
H A D | grep.h | 89 struct pat { struct 90 char *pat; argument 95 char *pat; argument 132 extern struct pat *pattern;
|
H A D | util.c | 71 static int litexec(const struct pat *pat, const char *string, 91 if (fnmatch(fpattern[i].pat, fname, 0) == 0 || in file_matching() 92 fnmatch(fpattern[i].pat, fname_base, 0) == 0) in file_matching() 111 if (dname != NULL && fnmatch(dpattern[i].pat, dname, 0) == 0) in dir_matching() 424 litexec(const struct pat *pat, const char *string, size_t nmatch, in litexec() argument 446 if ((unsigned long)pat->len > strlen(search)) in litexec() 448 sub = strstr_fn(search, pat->pat); in litexec() 459 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len; in litexec()
|
/freebsd/lib/libcompiler_rt/ |
H A D | Makefile | 22 . for pat in cas swp ldadd ldclr ldeor ldset 25 . if ${pat} == "cas" || ${size} != "16" 27 . for lse_name in outline_atomic_${pat}${size}_${model}.S 30 ACFLAGS.${lse_name}+= -DL_${pat} -DSIZE=${size} -DMODEL=${model} -I${CRTSRC}
|
/freebsd/crypto/openssh/ |
H A D | compat.c | 46 char *pat; in compat_banner() member 129 for (i = 0; check[i].pat; i++) { in compat_banner() 130 if (match_pattern_list(version, check[i].pat, 0) == 1) { in compat_banner() 132 version, check[i].pat, check[i].bugs); in compat_banner()
|
H A D | match.c | 239 char *p, *pat; in match_user() local 256 pat = xstrdup(pattern); in match_user() 257 p = strchr(pat, '@'); in match_user() 260 if ((ret = match_pattern(user, pat)) == 1) in match_user() 262 free(pat); in match_user()
|
/freebsd/sys/contrib/libsodium/msvc-scripts/ |
H A D | rep.vbs | 1 Dim pat, patparts, rxp, inp 2 pat = WScript.Arguments(0) 3 patparts = Split(pat, "/")
|
/freebsd/contrib/flex/src/ |
H A D | parse.y | 69 int pat, scnum, eps, headcnt, trailcnt, lastchar, i, rulelen; variable 122 pat = cclinit(); 123 cclnegate( pat ); 125 def_rule = mkstate( -pat ); 235 pat = $2; 236 finish_rule( pat, variable_trail_rule, 244 pat ); 256 pat ); 271 pat = $1; 272 finish_rule( pat, variable_trail_rule, [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | trace.c | 145 char *pat, *endpat; local 148 pat = s; 169 sm_debug_addsetting_x(sm_strndup_x(pat, endpat - pat), level);
|
/freebsd/bin/ed/ |
H A D | sub.c | 112 search_and_replace(pattern_t *pat, int gflag, int kth) in search_and_replace() argument 126 if ((len = substitute_matching_text(pat, lp, gflag, kth)) < 0) in search_and_replace() 166 substitute_matching_text(pattern_t *pat, line_t *lp, int gflag, int kth) in substitute_matching_text() argument 181 if (!regexec(pat, txt, SE_MAX, rm, 0)) { in substitute_matching_text() 192 pat->re_nsub)) < 0) in substitute_matching_text() 205 !regexec(pat, txt, SE_MAX, rm, REG_NOTBOL)); in substitute_matching_text()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | glob.c | 906 match(Char *name, Char *pat, Char *patend) argument 914 while (pat < patend) { 915 c = *pat++; 918 while (pat < patend && (*pat & M_MASK) == M_ALL) 919 pat++; /* eat consecutive '*' */ 920 if (pat == patend) 925 nextp = pat - 1; 935 if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS) 936 ++pat; 937 while (((c = *pat++) & M_MASK) != M_END) { [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | glob.c | 696 match(Char *name, Char *pat, Char *patend) in match() argument 701 while (pat < patend) { in match() 702 c = *pat++; in match() 705 if (pat == patend) in match() 708 if (match(name, pat, patend)) in match() 720 if ((negate_range = ((*pat & M_MASK) == M_NOT)) != CHAR_EOS) in match() 721 ++pat; in match() 722 while (((c = *pat++) & M_MASK) != M_END) in match() 723 if ((*pat & M_MASK) == M_RNG) { in match() 724 if (c <= k && k <= pat[1]) in match() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86Instr3DNow.td | 14 class I3DNow<bits<8> o, Format F, dag outs, dag ins, string asm, list<dag> pat> 15 : I<o, F, outs, ins, asm, pat> { 18 class I3DNow_binop<bits<8> o, Format F, dag ins, string Mnemonic, list<dag> pat> 20 !strconcat(Mnemonic, "\t{$src2, $dst|$dst, $src2}"), pat>, ThreeDNow { 24 class I3DNow_conv<bits<8> o, Format F, dag ins, string Mnemonic, list<dag> pat> 26 !strconcat(Mnemonic, "\t{$src, $dst|$dst, $src}"), pat>, ThreeDNow;
|