Home
last modified time | relevance | path

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

123

/titanic_52/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_cr_6766246_pattern_matching_bug.sh101 typeset pat
103 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} matche
[all...]
/titanic_52/usr/src/cmd/tcpd/
H A Dtcpdchk.c348 static void check_daemon(pat) in check_daemon() argument
349 char *pat; in check_daemon()
351 if (pat[0] == '@') {
352 tcpd_warn("%s: daemon name begins with \"@\"", pat);
353 } else if (pat[0] == '.') {
354 tcpd_warn("%s: daemon name begins with dot", pat);
355 } else if (pat[strlen(pat) - 1] == '.') {
356 tcpd_warn("%s: daemon name ends in dot", pat);
357 } else if (STR_EQ(pat, "AL
380 check_user(pat) check_user() argument
402 check_host(pat) check_host() argument
478 reserved_name(pat) reserved_name() argument
[all...]
/titanic_52/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;
69 if (*pat == '\0')
76 if (sm_match(pat, str))
84 ccstart = pat++;
86 if (*pat == '!')
89 ++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");
H A Ddebug.c291 const char *pat, *endpat; local
294 pat = s;
313 sm_debug_addsetting_x(sm_strndup_x(pat, endpat - pat), level);
/titanic_52/usr/src/tools/cscope-fast/
H A Dcgrep.c260 static Expr *eall(re_re *r, PATTERN *pat);
261 static Expr *d0(re_re *r, PATTERN *pat);
262 static Expr *d1(re_re *r, PATTERN *pat);
263 static Expr *d2(re_re *r, PATTERN *pat);
264 static Expr *d3(re_re *r, PATTERN *pat);
266 static void lex(re_re *r, PATTERN *pat);
267 static int re_lit(PATTERN *pat, uchar_t **b, uchar_t **e);
268 static void traverse(PATTERN *pat, Expr *e);
269 static int ccl(PATTERN *pat, uchar_t *tab);
271 static BOOL altlist(Expr *e, uchar_t *buf, re_cw *pat);
356 dogre(PATTERN * pat) dogre() argument
428 grepmatch(PATTERN * pat,uchar_t ** mb,uchar_t ** me) grepmatch() argument
487 re_reexec(PATTERN * pat,uchar_t * b,uchar_t * e,uchar_t ** mb,uchar_t ** me) re_reexec() argument
902 egprep(PATTERN * pat) egprep() argument
947 lex(re_re * r,PATTERN * pat) lex() argument
974 ccl(PATTERN * pat,uchar_t * tab) ccl() argument
1044 d3(re_re * r,PATTERN * pat) d3() argument
1091 d2(re_re * r,PATTERN * pat) d2() argument
1106 d1(re_re * r,PATTERN * pat) d1() argument
1120 d0(re_re * r,PATTERN * pat) d0() argument
1136 eall(re_re * r,PATTERN * pat) eall() argument
1158 re_lit(PATTERN * pat,uchar_t ** b,uchar_t ** e) re_lit() argument
1174 traverse(PATTERN * pat,Expr * e) traverse() argument
1251 re_bmexec(PATTERN * pat,uchar_t * s,uchar_t * e,uchar_t ** mb,uchar_t ** me) re_bmexec() argument
1291 re_cw *pat; re_recw() local
1307 altlist(Expr * e,uchar_t * buf,re_cw * pat) altlist() argument
1316 word(Expr * e,uchar_t * buf,re_cw * pat) word() argument
1545 re_cwexec(PATTERN * pat,uchar_t * rs,uchar_t * re,uchar_t ** mb,uchar_t ** me) re_cwexec() argument
1766 pattern_match(PATTERN * pat,LINE * lptr) pattern_match() argument
[all...]
/titanic_52/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
573 name_pattern_match(struct node *np, const char *pat) in name_pattern_match() argument
575 const char *cend; /* first character not in component in pat */ in name_pattern_match()
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()
618 name_pattern_match_in_subtree(struct node * np,const char * pat) name_pattern_match_in_subtree() argument
680 ptree_type_pattern(int flags,enum nodetype t,const char * pat) ptree_type_pattern() argument
736 ptree_all(int flags,const char * pat) ptree_all() argument
742 ptree_fault(int flags,const char * pat) ptree_fault() argument
748 ptree_upset(int flags,const char * pat) ptree_upset() argument
754 ptree_defect(int flags,const char * pat) ptree_defect() argument
760 ptree_error(int flags,const char * pat) ptree_error() argument
766 ptree_ereport(int flags,const char * pat) ptree_ereport() argument
772 ptree_serd(int flags,const char * pat) ptree_serd() argument
778 ptree_stat(int flags,const char * pat) ptree_stat() argument
784 ptree_asru(int flags,const char * pat) ptree_asru() argument
790 ptree_fru(int flags,const char * pat) ptree_fru() argument
796 ptree_prop(int flags,const char * pat) ptree_prop() argument
802 ptree_mask(int flags,const char * pat) ptree_mask() argument
[all...]
/titanic_52/usr/src/common/smbsrv/
H A Dsmb_match.c140 smb_match_private(const char *pat, const char *str, struct match_priv *priv) in smb_match_private() argument
145 smb_wchar_t wcpat, wcstr; /* current wchar in pat, str */ in smb_match_private()
167 * We move pat forward in each switch case so that the in smb_match_private()
170 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, st in smb_match_private()
[all...]
/titanic_52/usr/src/contrib/ast/src/lib/libast/misc/
H A Dglob.c228 addmatch(register glob_t* gp, const char* dir, const char* pat, register const char* rescan, char* endslash, int meta) in addmatch() argument
242 stakputs(pat); in addmatch()
294 register char* pat; in glob_dir() local
327 pat = rescan = ap->gl_begin; in glob_dir()
392 pat = rescan; in glob_dir()
403 if (pat == prefix) in glob_dir()
416 if (pat == prefix + 1) in glob_dir()
421 trim(ap->gl_begin, pat, &t1, rescan, &t2); in glob_dir()
422 pat -= t1; in glob_dir()
426 *(restore1 = pat in glob_dir()
583 register char* pat; glob() local
[all...]
/titanic_52/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()
578 pat = strtok_r(NULL, sepr, &lasts); in liblist()
585 if (pat == NULL) { in liblist()
598 Dyp->libpat[Dyp->nlibpat++] = pat; in liblist()
[all...]
/titanic_52/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 else if((cp[2]=='}' || cp[2]=='.' && cp[3]=='.') && ((*pat>='a' && *pat<='z' && cp[1]>='a' && cp[1]<='z') || (*pat>='A' && *pat< in path_generate()
[all...]
/titanic_52/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_gen.c751 * nsc_strmatch (char *s, char *pat)
763 nsc_strmatch(char *s, char *pat) in nsc_strmatch() argument
767 for (; *pat; pat++, s++) { in nsc_strmatch()
768 if (*pat == '*') { in nsc_strmatch()
769 while (*pat == '*') in nsc_strmatch()
770 pat++; in nsc_strmatch()
772 if (!*pat) in nsc_strmatch()
776 if (*pat == '[' || *pat in nsc_strmatch()
[all...]
/titanic_52/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()
435 --pat; /* point to the period */ in oktotouch()
443 for (src++, pat++, osrc = src; *src && *pat; src = osrc, pat++) { in oktotouch()
445 *pat in oktotouch()
[all...]
/titanic_52/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c123 mem_unum_burst_sgsc(const char *pat, char ***dimmsp, size_t *ndimmsp) in mem_unum_burst_sgsc() argument
136 if (strchr(pat, 'D') != NULL) { in mem_unum_burst_sgsc()
138 dimms[0] = fmd_fmri_strdup(pat); in mem_unum_burst_sgsc()
148 copysz = strlen(pat) + 1; in mem_unum_burst_sgsc()
150 (void) strcpy(copy, pat); in mem_unum_burst_sgsc()
179 mem_unum_burst_pattern(const char *pat, char ***dimmsp, size_t *ndimmsp) in mem_unum_burst_pattern() argument
192 (void) sscanf(pat, bd->bd_pat, &replace, &start, &matched); in mem_unum_burst_pattern()
195 (void) strlcpy(dimmname, pat, sizeof (dimmname)); in mem_unum_burst_pattern()
202 c = pat + start; in mem_unum_burst_pattern()
257 mem_unum_burst(const char *pat, cha argument
[all...]
/titanic_52/usr/src/cmd/nl/
H A Dnl.c111 char pat[EXPSIZ]; local
157 (void) strcpy(pat, optarg+1);
160 compile(pat, (char *)0, (char *)0);
183 (void) strcpy(pat, optarg+1);
186 compile(pat, (char *)0, (char *)0);
209 (void) strcpy(pat, optarg+1);
212 compile(pat, (char *)0, (char *)0);
334 pat[r] = s[q];
338 pat[r] = '\0';
341 compile(pat, (cha
[all...]
/titanic_52/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()
/titanic_52/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, sizeo in dllsopen()
[all...]
/titanic_52/usr/src/grub/grub-0.97/docs/
H A Dhelp2man123 my $pat = $2 ? "(?$2)$1" : $1;
126 eval { $key = qr($pat) };
433 # Check if matched paragraph contains /pat/.
436 for my $pat (keys %append)
438 if ($matched =~ $pat)
440 $content .= ".PP\n" unless $append{$pat} =~ /^\./;
441 $content .= $append{$pat};
/titanic_52/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()
/titanic_52/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()
/titanic_52/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/;
/titanic_52/usr/src/lib/fm/libfmevent/common/
H A Dfmev_subscribe.c246 fmev_shdl_subscribe(fmev_shdl_t hdl, const char *pat, fmev_cbfunc_t func, in fmev_shdl_subscribe() argument
258 if (pat == NULL || func == NULL) in fmev_shdl_subscribe()
265 if (*pat == '\0' || strncmp(pat, EC_ALL, sizeof (EC_ALL)) == 0 || in fmev_shdl_subscribe()
266 strncmp(pat, EC_SUB_ALL, sizeof (EC_SUB_ALL)) == 0 || in fmev_shdl_subscribe()
267 strnlen(pat, FMEV_MAX_CLASS) == FMEV_MAX_CLASS) in fmev_shdl_subscribe()
273 (void) strncpy(sip->si_pat, pat, sizeof (sip->si_pat)); in fmev_shdl_subscribe()
349 fmev_shdl_unsubscribe(fmev_shdl_t hdl, const char *pat) in fmev_shdl_unsubscribe() argument
360 if (pat == NULL) in fmev_shdl_unsubscribe()
363 if (*pat in fmev_shdl_unsubscribe()
[all...]
/titanic_52/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);

123