/openbsd-src/lib/libc/gen/ |
H A D | fnmatch.c | 99 classmatch(const char *pattern, char test, int foldcase, const char **ep) in classmatch() argument 101 const char * const mismatch = pattern; in classmatch() 107 if (pattern[0] != '[' || pattern[1] != ':') { in classmatch() 111 pattern += 2; in classmatch() 113 if ((colon = strchr(pattern, ':')) == NULL || colon[1] != ']') { in classmatch() 118 len = (size_t)(colon - pattern); in classmatch() 120 if (foldcase && strncmp(pattern, "upper:]", 7) == 0) in classmatch() 121 pattern = "lower:]"; in classmatch() 123 if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') { in classmatch() 144 static int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument [all …]
|
/openbsd-src/usr.bin/rsync/ |
H A D | rmatch.c | 64 classmatch(const char *pattern, char test, const char **ep) in classmatch() argument 66 const char *mismatch = pattern; in classmatch() 72 if (*pattern++ != ':') { in classmatch() 76 if ((colon = strchr(pattern, ':')) == NULL || colon[1] != ']') { in classmatch() 81 len = (size_t)(colon - pattern); in classmatch() 84 if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') { in classmatch() 99 const char *pattern = *pp; in rangematch() local 110 if ((negate = (*pattern == '!' || *pattern == '^'))) in rangematch() 111 ++pattern; in rangematch() 119 c = *pattern++; in rangematch() [all …]
|
H A D | rules.c | 25 char *pattern; member 147 parse_pattern(struct rule *r, char *pattern) 157 if (*pattern == '/') { 158 pattern++; 161 plen = strlen(pattern); 167 if (plen > 1 && pattern[plen - 1] == '/') { 169 pattern[plen - 1] = '\0'; 171 if (plen > 4 && strcmp(pattern + plen - 4, "/***") == 0) { 173 pattern[plen - 4] = '\0'; 177 for (p = pattern; *p != '\0'; p++) [all …]
|
/openbsd-src/regress/usr.sbin/httpd/patterns/ |
H A D | test-patterns.out | 3 pattern='^/(%a+)/(%d+)$' 9 pattern='/[^%d][%w%u][^%c]+()[%d]+' 14 pattern='/^(.a.e)/(.)' 20 pattern='/(.*)/%1-(%d+)' 26 pattern='/page/(%b[])' 31 pattern=']+' 36 pattern='[)]+' 41 pattern='$^' 44 pattern='([2-5]-)' 49 pattern='^**$' [all …]
|
H A D | test-patterns-lua.out | 2 pattern='^/(%a+)/(%d+)$' 5 pattern='/[^%d][%w%u][^%c]+()[%d]+' 8 pattern='/^(.a.e)/(.)' 11 pattern='/(.*)/%1-(%d+)' 14 pattern='/page/(%b[])' 17 pattern=']+' 20 pattern='[)]+' 23 pattern='$^' 26 pattern='([2-5]-)' 29 pattern='^**$' [all …]
|
/openbsd-src/usr.bin/ssh/ |
H A D | match.c | 6 * Simple pattern matching, with '*' and '?' as wildcards. 51 * Returns true if the given string matches the pattern (which may contain ? 55 match_pattern(const char *s, const char *pattern) in match_pattern() argument 58 /* If at end of pattern, accept if also at end of string. */ in match_pattern() 59 if (!*pattern) in match_pattern() 62 if (*pattern == '*') { in match_pattern() 64 while (*pattern == '*') in match_pattern() 65 pattern++; in match_pattern() 67 /* If at end of pattern, accept immediately. */ in match_pattern() 68 if (!*pattern) in match_pattern() 120 match_pattern_list(const char * string,const char * pattern,int dolower) match_pattern_list() argument 174 match_usergroup_pattern_list(const char * string,const char * pattern) match_usergroup_pattern_list() argument 187 match_hostname(const char * host,const char * pattern) match_hostname() argument 230 match_user(const char * user,const char * host,const char * ipaddr,const char * pattern) match_user() argument [all...] |
/openbsd-src/usr.bin/awk/ |
H A D | awkgram.y | 66 %type <p> pas pattern ppattern plist pplist patlist prarg term re 126 FOR '(' opt_simple_stmt ';' opt_nl pattern ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt 140 IF '(' pattern rparen { $$ = notnull($3); } 173 pattern { $$ = notnull($1); } 196 pattern 197 | patlist comma pattern { $$ = linkum($1, $3); } 222 pattern: 223 var ASGNOP pattern { $$ = op2($2, $1, $3); } 224 | pattern '?' pattern ':' pattern %prec '?' 226 | pattern bor pattern %prec BOR [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/ |
H A D | MSP430InstrFormats.td | 47 dag outs, dag ins, string asmstr, list<dag> pattern> 49 let Pattern = pattern; 64 dag outs, dag ins, string asmstr, list<dag> pattern> 65 : IForm<opcode, dest, 1, src, size, outs, ins, asmstr, pattern>; 68 dag outs, dag ins, string asmstr, list<dag> pattern> 69 : IForm8<opcode, DstReg, SrcReg, 2, outs, ins, asmstr, pattern> { 74 dag outs, dag ins, string asmstr, list<dag> pattern> 75 : IForm8<opcode, DstReg, SrcImm, 4, outs, ins, asmstr, pattern> { 83 dag outs, dag ins, string asmstr, list<dag> pattern> 86 let Pattern = pattern; [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/ |
H A D | XCoreInstrFormats.td | 12 class InstXCore<int sz, dag outs, dag ins, string asmstr, list<dag> pattern> 20 let Pattern = pattern; 26 class PseudoInstXCore<dag outs, dag ins, string asmstr, list<dag> pattern> 27 : InstXCore<0, outs, ins, asmstr, pattern> { 35 class _F3R<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern> 36 : InstXCore<2, outs, ins, asmstr, pattern> { 44 class _F3RImm<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern> 45 : _F3R<opc, outs, ins, asmstr, pattern> { 49 class _FL3R<bits<9> opc, dag outs, dag ins, string asmstr, list<dag> pattern> 50 : InstXCore<4, outs, ins, asmstr, pattern> { [all …]
|
/openbsd-src/usr.bin/make/ |
H A D | varmodifiers.c | 296 VarMatch(struct Name *word, bool addSpace, Buffer buf, void *pattern) in VarMatch() argument 298 const char *pat = pattern; in VarMatch() 316 VarNoMatch(struct Name *word, bool addSpace, Buffer buf, void *pattern) in VarNoMatch() argument 318 const char *pat = pattern; in VarNoMatch() 358 VarPattern *pattern; in get_sysvpattern() local 427 pattern = emalloc(sizeof(VarPattern)); in get_sysvpattern() 428 pattern->lbuffer = pattern->lhs = Buf_Retrieve(&buf); in get_sysvpattern() 429 pattern->leftLen = Buf_Size(&buf); in get_sysvpattern() 430 pattern->rhs = Buf_Retrieve(&buf2); in get_sysvpattern() 431 pattern->rightLen = Buf_Size(&buf2); in get_sysvpattern() [all …]
|
H A D | str.c | 239 const char *pattern, const char *epattern) in star_match() argument 244 pattern++; in star_match() 247 while (pattern != epattern && in star_match() 248 (*pattern == '?' || *pattern == '*')) { in star_match() 249 if (*pattern == '?') { in star_match() 255 pattern++; in star_match() 257 if (pattern == epattern) in star_match() 260 if (Str_Matchi(string, estring, pattern, in star_match() 318 const char *pattern, const char *epattern) in Str_Matchi() argument 320 while (pattern != epattern) { in Str_Matchi() [all …]
|
/openbsd-src/usr.bin/less/ |
H A D | pattern.c | 26 compile_pattern2(char *pattern, int search_type, regex_t **comp_pattern) in compile_pattern2() argument 33 if (regcomp(comp, pattern, less_is_more ? 0 : REGCOMP_FLAG)) { in compile_pattern2() 48 compile_pattern(char *pattern, int search_type, regex_t **comp_pattern) in compile_pattern() argument 54 cvt_pattern = pattern; in compile_pattern() 56 cvt_pattern = ecalloc(1, cvt_length(strlen(pattern))); in compile_pattern() 57 cvt_text(cvt_pattern, pattern, NULL, NULL, CVT_TO_LC); in compile_pattern() 60 if (cvt_pattern != pattern) in compile_pattern() 69 uncompile_pattern(regex_t **pattern) in uncompile_pattern() argument 71 if (*pattern != NULL) in uncompile_pattern() 72 regfree(*pattern); in uncompile_pattern() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/ |
H A D | LoongArchInstrFormats.td | 20 list<dag> pattern = []> 34 let Pattern = pattern; 38 class Pseudo<dag outs, dag ins, list<dag> pattern = [], string opcstr = "", 40 : LAInst<outs, ins, opcstr, opnstr, pattern> { 48 list<dag> pattern = []> 49 : LAInst<outs, ins, opcstr, opnstr, pattern> { 61 list<dag> pattern = []> 62 : LAInst<outs, ins, opcstr, opnstr, pattern> { 76 list<dag> pattern = []> 77 : LAInst<outs, ins, opcstr, opnstr, pattern> { [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/ |
H A D | PPCInstrFormats.td | 130 InstrItinClass itin, list<dag> pattern> 132 let Pattern = pattern; 224 list<dag> pattern> 228 let Pattern = pattern; 236 InstrItinClass itin, list<dag> pattern> 242 let Pattern = pattern; 250 InstrItinClass itin, list<dag> pattern> 255 let Pattern = pattern; 263 InstrItinClass itin, list<dag> pattern> 269 let Pattern = pattern; [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86InstrFormats.td | 402 class PseudoI<dag oops, dag iops, list<dag> pattern> 404 let Pattern = pattern; 408 list<dag> pattern, Domain d = GenericDomain> 410 let Pattern = pattern; 414 list<dag> pattern, Domain d = GenericDomain> 416 let Pattern = pattern; 420 list<dag> pattern, Domain d = GenericDomain> 422 let Pattern = pattern; 426 list<dag> pattern> 428 let Pattern = pattern; [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/ |
H A D | AVRInstrFormats.td | 14 class AVRInst<dag outs, dag ins, string asmstr, list<dag> pattern> 21 let Pattern = pattern; 27 class AVRInst16<dag outs, dag ins, string asmstr, list<dag> pattern> 28 : AVRInst<outs, ins, asmstr, pattern> { 35 class AVRInst32<dag outs, dag ins, string asmstr, list<dag> pattern> 36 : AVRInst<outs, ins, asmstr, pattern> { 50 class Pseudo<dag outs, dag ins, string asmstr, list<dag> pattern> 51 : AVRInst16<outs, ins, asmstr, pattern> { 52 let Pattern = pattern; 67 list<dag> pattern> : AVRInst16<outs, ins, asmstr, pattern> { [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/ |
H A D | XtensaInstrFormats.td | 12 class XtensaInst<int size, dag outs, dag ins, string asmstr, list<dag> pattern, 23 let Pattern = pattern; 29 class XtensaInst24<dag outs, dag ins, string asmstr, list<dag> pattern, 31 : XtensaInst<3, outs, ins, asmstr, pattern, itin> { 37 class XtensaInst16<dag outs, dag ins, string asmstr, list<dag> pattern, 39 : XtensaInst<2, outs, ins, asmstr, pattern, itin> { 46 string asmstr, list<dag> pattern, InstrItinClass itin = NoItinerary> 47 : XtensaInst24<outs, ins, asmstr, pattern, itin> { 61 string asmstr, list<dag> pattern, InstrItinClass itin = NoItinerary> 62 : XtensaInst24<outs, ins, asmstr, pattern, itin> { [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/ |
H A D | SparcInstrFormats.td | 9 class InstSP<dag outs, dag ins, string asmstr, list<dag> pattern, 23 let Pattern = pattern; 36 class F2<dag outs, dag ins, string asmstr, list<dag> pattern, 38 : InstSP<outs, ins, asmstr, pattern, itin> { 48 class F2_1<bits<3> op2Val, dag outs, dag ins, string asmstr, list<dag> pattern, 50 : F2<outs, ins, asmstr, pattern, itin> { 59 list<dag> pattern, InstrItinClass itin = NoItinerary> 60 : F2<outs, ins, asmstr, pattern, itin> { 69 dag outs, dag ins, string asmstr, list<dag> pattern, 71 : InstSP<outs, ins, asmstr, pattern, itin> { [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
H A D | Mips16InstrFormats.td | 35 class MipsInst16_Base<dag outs, dag ins, string asmstr, list<dag> pattern, 45 let Pattern = pattern; 54 class MipsInst16<dag outs, dag ins, string asmstr, list<dag> pattern, 56 MipsInst16_Base<outs, ins, asmstr, pattern, itin> 71 class MipsInst16_32<dag outs, dag ins, string asmstr, list<dag> pattern, 73 MipsInst16_Base<outs, ins, asmstr, pattern, itin> 81 class MipsInst16_EXTEND<dag outs, dag ins, string asmstr, list<dag> pattern, 83 MipsInst16_32<outs, ins, asmstr, pattern, itin> 91 class MipsPseudo16<dag outs, dag ins, string asmstr, list<dag> pattern>: 92 MipsInst16<outs, ins, asmstr, pattern, IIPseudo> { [all …]
|
/openbsd-src/usr.bin/grep/ |
H A D | util.c | 222 if (fg_pattern[i].pattern) { in procline() 289 fgrepcomp(fastgrep_t *fg, const unsigned char *pattern) in fgrepcomp() argument 294 fg->patternLen = strlen(pattern); in fgrepcomp() 305 fg->pattern = grep_malloc(fg->patternLen + 1); in fgrepcomp() 307 fg->pattern[i] = toupper(pattern[i]); in fgrepcomp() 308 fg->pattern[fg->patternLen] = '\0'; in fgrepcomp() 310 fg->pattern = (unsigned char *)pattern; /* really const */ in fgrepcomp() 316 fg->qsBc[fg->pattern[i]] = fg->patternLen - i; in fgrepcomp() 323 fg->qsBc[tolower(fg->pattern[i])] = fg->patternLen - i; in fgrepcomp() 332 fastcomp(fastgrep_t *fg, const char *pattern) in fastcomp() argument [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
H A D | ARMInstrFormats.td | 496 class PseudoInst<dag oops, dag iops, InstrItinClass itin, list<dag> pattern> 501 let Pattern = pattern; 508 list<dag> pattern> 509 : PseudoInst<oops, iops, itin, pattern> { 516 list<dag> pattern> 517 : PseudoInst<oops, iops, itin, pattern> { 524 list<dag> pattern> 525 : PseudoInst<oops, iops, itin, pattern> { 532 list<dag> pattern> 533 : PseudoInst<oops, iops, itin, pattern> { [all …]
|
/openbsd-src/regress/lib/libssl/buffer/ |
H A D | buffertest.c | 173 uint8_t pattern; member 186 .pattern = 0xdb, 191 .pattern = 0xbd, 196 .pattern = 0xdb, 201 .pattern = 0xfe, 206 .pattern = 0xbd, 211 .pattern = 0xbd, 216 .pattern = 0xdb, 221 .pattern = 0xbd, 226 .pattern = 0xee, [all …]
|
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/lib/TAP/Parser/ |
H A D | Scheduler.pm | 60 glob-style pattern matching and recursive definitions, so you can also express 67 of strings or hashrefs which follow this pattern recursively. 117 =head3 Glob-style pattern matching for rules 119 We implement our own glob-style pattern matching. Here are the patterns it supports: 209 my $pattern; 215 $pattern .= '.*?'; 220 $pattern .= '[^/]*'; 225 $pattern .= '[^/]'; 230 $pattern .= '(?:'; 236 $pattern [all...] |
/openbsd-src/gnu/usr.bin/perl/ext/File-Glob/ |
H A D | bsd_glob.c | 214 bsd_glob(const char *pattern, int flags, argument 220 patnext = (U8 *) pattern; 249 if (isalpha(pattern[0]) && pattern[1] == ':' && 250 pattern[2] != BG_SEP && pattern[2] != BG_SEP2 && 252 *bufnext++ = pattern[0]; 299 globexp1(const Char *pattern, glob_t *pglob) argument 301 const Char* ptr = pattern; 305 if (pattern[0] == BG_LBRACE && pattern[1] == BG_RBRACE && pattern[2] == BG_EOS) 306 return glob0(pattern, pglob); 309 if (!globexp2(ptr, pattern, pglob, &rv)) [all …]
|
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/lib/ |
H A D | old-dejagnu.exp | 46 proc process-option { prog option message flag_name pattern } { argument 80 lappend result [list [lindex $i 0] "X$flag_name" [lrange $i $compos end] "$pattern"] 82 lappend result [list [lindex $i 0] "$flag_name" [lrange $i $compos end] "$pattern"] 143 set pattern "" 469 set pattern [lindex $i 2] 489 $ok "$name $pattern (test for errors, line $line)" 492 x$ok "$name $pattern (test for errors, line $line)" 495 $ok "$name $pattern (test for warnings, line $line)" 498 x$ok "$name $pattern (test for warnings, line $line)" 501 $uhoh "$name $pattern (test for bogus messages, line $line)" [all …]
|