Home
last modified time | relevance | path

Searched refs:pat (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_cr_6766246_pattern_matching_bug.sh103 pat="foo-bar" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
104 pat="foo+bar" ; [[ "$(do_match "${pat}")" == "match" ]] || err_exit "${pat} not matched."
105 pat="foo/bar" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
106 pat="foo_bar" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
107 pat="foo@bar" ; [[ "$(do_match "${pat}")" == "match" ]] || err_exit "${pat} not matched."
108 pat="foobar-" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
110 pat="foobar/" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
111 pat="foobar_" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
113 pat="-foobar" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
115 pat="/foobar" ; [[ "$(do_match "${pat}")" == "nomatch" ]] || err_exit "${pat} matched."
[all …]
/illumos-gate/usr/src/cmd/tcpd/
H A Dtcpdchk.c349 char *pat; in check_daemon()
355 } else if (pat[strlen(pat) - 1] == '.') {
357 } else if (STR_EQ(pat, "ALL") || STR_EQ(pat, unknown)) {
381 char *pat; in check_user()
387 } else if (pat[strlen(pat) - 1] == '.') {
389 } else if (STR_EQ(pat, "ALL") || STR_EQ(pat, unknown)
403 char *pat; in check_host()
459 if (pat[strlen(pat) - 1] == '.') {
465 if (STR_EQ(pat, "0.0.0.0") || STR_EQ(pat, "255.255.255.255")) {
469 } else if (pat[strlen(pat) - 1] != '.') {
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmatch.c47 sm_match(str, pat)
49 const char *pat; variable
57 switch (*pat)
64 ++pat;
68 ++pat;
89 ++pat;
102 c = *pat++;
104 if (*pat == '-' && pat[1] != ']')
106 ++pat;
124 ++pat;
[all …]
H A Dt-match.c19 #define try(str, pat, want) \ argument
20 got = sm_match(str, pat); \
24 str, pat, got ? "true" : "false");
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcgrep.c360 pat->re_ptr = egprep(pat); in dogre()
383 if ((pat->cw_ptr = re_recw(pat->re_ptr, pat->cmap)) != NULL) { in dogre()
392 pat->procfn = pat->succfn; in dogre()
904 pat->loc1 = pat->expression; in egprep()
905 pat->loc2 = pat->expression + strlen((char *)pat->expression); in egprep()
944 if (pat->loc1 == pat->loc2) { in lex()
957 if (pat->loc1 == pat->loc2) { in lex()
984 uchar_t c = pat->cmap[*pat->loc1]; in ccl()
989 for (; (pat->loc1 < pat->loc2) && (*pat->loc1 != ']'); pat->loc1++) { in ccl()
1010 if (pat->loc1 < pat->loc2) pat->loc1++; in ccl()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dptree.h62 void ptree_all(int flags, const char *pat);
63 void ptree_fault(int flags, const char *pat);
64 void ptree_upset(int flags, const char *pat);
65 void ptree_defect(int flags, const char *pat);
66 void ptree_error(int flags, const char *pat);
67 void ptree_ereport(int flags, const char *pat);
68 void ptree_serd(int flags, const char *pat);
69 void ptree_stat(int flags, const char *pat);
70 void ptree_config(int flags, const char *pat);
71 void ptree_prop(int flags, const char *pat);
[all …]
H A Dptree.c568 const char *pat; member
577 if (pat == NULL || *pat == '\0') in name_pattern_match()
585 cend = strchr(pat, '/'); in name_pattern_match()
587 cend = strchr(pat, '.'); in name_pattern_match()
589 cend = &pat[strlen(pat)]; in name_pattern_match()
595 const char *cstart = pat; in name_pattern_match()
620 if (pat == NULL || *pat == '\0') in name_pattern_match_in_subtree()
686 info.pat = pat; in ptree_type_pattern()
736 ptree_all(int flags, const char *pat) in ptree_all() argument
772 ptree_serd(int flags, const char *pat) in ptree_serd() argument
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_match.c170 while ((pc = *pat) != '\0') { in smb_match_private()
174 pat++; in smb_match_private()
183 pat++; in smb_match_private()
185 if (*pat == '\0') in smb_match_private()
189 rc = smb_match_private(pat, str, priv); in smb_match_private()
198 pat++; in smb_match_private()
203 rc = smb_match_private(pat, str, priv); in smb_match_private()
212 pat++; in smb_match_private()
230 pat++; in smb_match_private()
248 pat += nbpat; in smb_match_private()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dglob.c422 pat -= t1; in glob_dir()
429 while (pat[0] == '*' && pat[1] == '*' && (pat[2] == '/' || pat[2]==0)) in glob_dir()
432 if (pat[2]) in glob_dir()
434 pat += 3; in glob_dir()
436 pat++; in glob_dir()
437 if (*pat) in glob_dir()
440 rescan = *pat?0:pat; in glob_dir()
441 pat = "*"; in glob_dir()
474 pat = strcpy(gp->gl_opt, pat); in glob_dir()
694 pat += 2; in glob()
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dlistopts.c541 char *pat; in liblist() local
571 pat = strtok_r(arg, sepr, &lasts); in liblist()
574 if (pat != NULL && *pat == '!') { in liblist()
576 pat += strspn(pat, "!"); in liblist()
577 if (*pat == '\0') in liblist()
585 if (pat == NULL) { in liblist()
613 pat = NULL; in liblist()
628 if (pat != NULL && *pat == '!') { in liblist()
631 pat += strspn(pat, "!"); in liblist()
632 if (*pat == '\0') in liblist()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dexpand.c276 char *pat, *rescan; in path_generate() local
292 pat = cp; in path_generate()
306 if(isdigit(*pat) || *pat=='+' || *pat=='-') in path_generate()
308 first = strtol(pat,&endc,0); in path_generate()
352 …'}' || cp[2]=='.' && cp[3]=='.') && ((*pat>='a' && *pat<='z' && cp[1]>='a' && cp[1]<='z') || (*pa… in path_generate()
354 first = *pat; in path_generate()
408 cp = pat-1; in path_generate()
417 pat[0] = first; in path_generate()
418 cp = &pat[1]; in path_generate()
457 stakputs(pat); in path_generate()
[all …]
/illumos-gate/usr/src/cmd/sgs/error/common/
H A Derrortouch.c425 char *pat; in oktotouch() local
428 pat = suffixlist; in oktotouch()
429 if (pat == 0) in oktotouch()
431 if (*pat == '*') in oktotouch()
433 while (*pat++ != '.') in oktotouch()
443 for (src++, pat++, osrc = src; *src && *pat; src = osrc, pat++) { in oktotouch()
449 src++, pat++) in oktotouch()
451 if (*src == 0 && (*pat == 0 || *pat == '.' || *pat == '*')) in oktotouch()
455 while (*pat && *pat != '.') in oktotouch()
456 pat++; in oktotouch()
[all …]
/illumos-gate/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c125 mem_unum_burst_sgsc(const char *pat, char ***dimmsp, size_t *ndimmsp) in mem_unum_burst_sgsc() argument
138 if (strchr(pat, 'D') != NULL) { in mem_unum_burst_sgsc()
140 dimms[0] = fmd_fmri_strdup(pat); in mem_unum_burst_sgsc()
150 copysz = strlen(pat) + 1; in mem_unum_burst_sgsc()
152 (void) strcpy(copy, pat); in mem_unum_burst_sgsc()
194 (void) sscanf(pat, bd->bd_pat, &replace, &start, &matched); in mem_unum_burst_pattern()
197 (void) strlcpy(dimmname, pat, sizeof (dimmname)); in mem_unum_burst_pattern()
204 c = pat + start; in mem_unum_burst_pattern()
259 mem_unum_burst(const char *pat, char ***dimmsp, size_t *ndimmsp) in mem_unum_burst() argument
270 return (mem_unum_burst_sgsc(pat, dimmsp, ndimmsp)); in mem_unum_burst()
[all …]
/illumos-gate/usr/src/cmd/nl/
H A Dnl.c107 char pat[EXPSIZ]; in main() local
153 (void) strcpy(pat, optarg+1); in main()
179 (void) strcpy(pat, optarg+1); in main()
182 compile(pat, NULL, NULL); in main()
205 (void) strcpy(pat, optarg+1); in main()
330 pat[r] = s[q]; in main()
334 pat[r] = '\0'; in main()
364 pat[r] = s[q]; in main()
368 pat[r] = '\0'; in main()
398 pat[r] = s[q]; in main()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/
H A Ddllscan.c51 char pat[64]; \
96 char pat[256]; in dllinfo() local
137 if (pn >= sizeof(pat)) in dllinfo()
138 pn = sizeof(pat) - 1; in dllinfo()
139 memcpy(pat, p, pn); in dllinfo()
140 pat[pn] = 0; in dllinfo()
141 if (strmatch(h, pat)) in dllinfo()
335 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix); in dllsopen()
338 …sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(%s([-.])%s%s|%s.%s)", info->prefix, name, strchr(ve… in dllsopen()
342 …sfsprintf(scan->pat, sizeof(scan->pat), "%s%s@(?([-.])%s%s|%s%s)", info->prefix, name, version, in… in dllsopen()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dinfotocap.c82 int val, pat; in lookat() local
84 while ((pat = *pattern++) && (val = *string++)) in lookat()
85 if (pat == '*') in lookat()
87 else if (val != pat) in lookat()
89 if (pat == '\0') in lookat()
/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dhelp2man123 my $pat = $2 ? "(?$2)$1" : $1;
126 eval { $key = qr($pat) };
436 for my $pat (keys %append)
438 if ($matched =~ $pat)
440 $content .= ".PP\n" unless $append{$pat} =~ /^\./;
441 $content .= $append{$pat};
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregfatal.c33 regfatalpat(regex_t* p, int level, int code, const char* pat) in regfatalpat() argument
39 if (pat) in regfatalpat()
40 error(level, "regular expression: %s: %s", pat, buf); in regfatalpat()
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_synd.c230 int pat = synd & 0xf; in mcamd_cksynd_decode() local
233 if (pat == 0) { in mcamd_cksynd_decode()
240 if (cksynd[pat - 1][i] == synd) { in mcamd_cksynd_decode()
242 *patp = pat; in mcamd_cksynd_decode()
/illumos-gate/usr/src/tools/scripts/
H A Dvalidate_paths.pl110 foreach my $pat (@opt_s) {
111 eval '$file =~ s' . $pat;
115 foreach my $pat (@exclude) {
116 ($ignore = 1, last) if $file =~ /$pat/;
H A Dvalidate_flg.pl39 my ($pat, $dir) = @_;
41 my $foo = `find $dir -name "$pat" -print | grep /SCCS/s.`;
54 foreach my $pat (@exclude) {
55 return undef if $str =~ /$pat/;
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dfmev_subscribe.c244 fmev_shdl_subscribe(fmev_shdl_t hdl, const char *pat, fmev_cbfunc_t func, in fmev_shdl_subscribe() argument
256 if (pat == NULL || func == NULL) in fmev_shdl_subscribe()
263 if (*pat == '\0' || strncmp(pat, EC_ALL, sizeof (EC_ALL)) == 0 || in fmev_shdl_subscribe()
264 strncmp(pat, EC_SUB_ALL, sizeof (EC_SUB_ALL)) == 0 || in fmev_shdl_subscribe()
265 strnlen(pat, FMEV_MAX_CLASS) == FMEV_MAX_CLASS) in fmev_shdl_subscribe()
271 (void) strncpy(sip->si_pat, pat, sizeof (sip->si_pat)); in fmev_shdl_subscribe()
347 fmev_shdl_unsubscribe(fmev_shdl_t hdl, const char *pat) in fmev_shdl_unsubscribe() argument
358 if (pat == NULL) in fmev_shdl_unsubscribe()
361 if (*pat == '\0' || strncmp(pat, EVCH_ALLSUB, sizeof (EC_ALL)) == 0 || in fmev_shdl_unsubscribe()
362 strnlen(pat, FMEV_MAX_CLASS) == FMEV_MAX_CLASS) in fmev_shdl_unsubscribe()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dtrace.c147 char *pat, *endpat; local
150 pat = s;
171 sm_debug_addsetting_x(sm_strndup_x(pat, endpat - pat), level);
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_sol_rvi.c83 const uint64_t pat = rvi_attr_to_pat(MTRR_TYPE_WB); in rvi_map_table() local
85 return (paddr | flags | pat | rprot); in rvi_map_table()
93 const uint64_t pat = rvi_attr_to_pat(attr); in rvi_map_page() local
95 return (paddr | flags | pat | rprot); in rvi_map_page()
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dglob.c1102 while (pat < patend) { in match()
1103 c = *pat++; in match()
1112 while (pat < patend && pat->w_at == M_QUOTE && in match()
1115 if (pat == patend) in match()
1120 nextp = pat - 1; in match()
1144 ++pat; in match()
1150 cc.w_at = pat->w_at; in match()
1151 cc.w_wc = pat->w_wc; in match()
1154 ++pat; in match()
1161 pat += 2; in match()
[all …]

123