Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 190) sorted by relevance

12345678

/titanic_44/usr/src/lib/fm/topo/libtopo/common/
H A Dmktables.sh61 pattern="#define TOPO_SENSOR_TYPE_\([A-Z0-9_]*\).*\$"
64 cat $libtopo_h | sed -n "s/$pattern/$replace/p" || exit 1
74 pattern=" TOPO_SENSOR_UNITS_\([A-Z0-9_]*\).*\$"
77 cat $libtopo_h | sed -n "s/$pattern/$replace/p" || exit 1
87 pattern=" TOPO_LED_TYPE_\([A-Z0-9_]*\).*\$"
90 cat $libtopo_h | sed -n "s/$pattern/$replace/p" || exit 1
100 pattern=" TOPO_LED_STATE_\([A-Z0-9_]*\).*\$"
103 cat $libtopo_h | sed -n "s/$pattern/$replace/p" || exit 1
113 pattern="#define TOPO_SENSOR_STATE_PHYSICAL_\([A-Z0-9_]*\).*\$"
116 cat $libtopo_h | sed -n "s/$pattern/$replace/p" || exit 1
[all …]
H A Dmkerror.sh50 pattern='^[ ]*ETOPO_[A-Z0-9_]*.*\* \(.*\) \*.*'
53 echo "$input" | sed -n "s/$pattern/$replace/p" || exit 1
87 pattern='^[ ]*ETOPO_PROP_[A-Z0-9_]*.*\* \(.*\) \*.*'
90 echo "$input" | sed -n "s/$pattern/$replace/p" || exit 1
104 pattern='^[ ]*ETOPO_METHOD_[A-Z0-9_]*.*\* \(.*\) \*.*'
107 echo "$input" | sed -n "s/$pattern/$replace/p" || exit 1
121 pattern='^[ ]*ETOPO_FMRI_[A-Z0-9_]*.*\* \(.*\) \*.*'
124 echo "$input" | sed -n "s/$pattern/$replace/p" || exit 1
138 pattern='^[ ]*ETOPO_HDL_[A-Z0-9_]*.*\* \(.*\) \*.*'
141 echo "$input" | sed -n "s/$pattern/$replace/p" || exit 1
[all …]
/titanic_44/usr/src/lib/libc/port/locale/
H A Dfnmatch.c77 fnmatch(pattern, string, flags) in fnmatch() argument
78 const char *pattern, *string; in fnmatch()
84 return (fnmatch1(pattern, string, string, flags, initial, initial,
89 fnmatch1(const char *pattern, const char *string, const char *stringstart, in fnmatch1() argument
98 pclen = mbrtowc_l(&pc, pattern, MB_LEN_MAX, &patmbs, loc); in fnmatch1()
101 pattern += pclen; in fnmatch1()
127 c = *pattern; in fnmatch1()
130 c = *++pattern; in fnmatch1()
152 if (!fnmatch1(pattern, string, stringstart, in fnmatch1()
179 switch (rangematch(pattern, sc, flags, &newp, in fnmatch1()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dmatch.c51 match_pattern(const char *s, const char *pattern) in match_pattern() argument
55 if (!*pattern) in match_pattern()
58 if (*pattern == '*') { in match_pattern()
60 pattern++; in match_pattern()
63 if (!*pattern) in match_pattern()
67 if (*pattern != '?' && *pattern != '*') { in match_pattern()
74 if (*s == *pattern && in match_pattern()
75 match_pattern(s + 1, pattern + 1)) in match_pattern()
85 if (match_pattern(s, pattern)) in match_pattern()
98 if (*pattern != '?' && *pattern != *s) in match_pattern()
[all …]
/titanic_44/usr/src/cmd/awk/
H A Dawk.g.y76 %type <p> pas pattern ppattern plist pplist patlist prarg term
134 FOR '(' opt_simple_stmt ';' pattern ';' opt_simple_stmt rparen stmt
148 IF '(' pattern rparen { $$ = notnull($3); }
181 pattern { $$ = notnull($1); }
204 pattern
205 | patlist comma pattern { $$ = linkum($1, $3); }
232 pattern:
233 var ASGNOP pattern { $$ = op2($2, $1, $3); }
234 | pattern '?' pattern ':' pattern %prec '?'
236 | pattern bor pattern %prec BOR
[all …]
/titanic_44/usr/src/lib/libipmi/common/
H A Dmktables.sh61 pattern=" \(EIPMI_[0-9A-Z_]*\)[^ \/]*\/\* \(.*\) \*\/$"
64 cat $libipmi_h | sed -n "s/$pattern/$replace/p" || exit 1
74 pattern="#define IPMI_ET_\([A-Z0-9_]*\).*\$"
77 cat $libipmi_h | sed -n "s/$pattern/$replace/p" || exit 1
87 pattern="#define IPMI_ST_\([A-Z0-9_]*\).*\$"
90 cat $libipmi_h | sed -n "s/$pattern/$replace/p" || exit 1
100 pattern="#define IPMI_RT_\([A-Z0-9_]*\).*\$"
103 cat $libipmi_h | sed -n "s/$pattern/$replace/p" || exit 1
113 pattern="#define IPMI_UNITS_\([A-Z0-9_]*\).*\$"
116 cat $libipmi_h | sed -n "s/$pattern/$replace/p" || exit 1
/titanic_44/usr/src/lib/libast/common/regex/
H A Dregcache.c39 char* pattern; member
79 regcache(const char* pattern, regflags_t reflags, int* status) in regcache() argument
93 if (!pattern) in regcache()
134 for (i = 0; i < sizeof(key) && pattern[i]; i++) in regcache()
135 ((char*)&key)[i] = pattern[i]; in regcache()
145 …else if (*(Key_t*)matchstate.cache[i]->pattern == key && !strcmp(matchstate.cache[i]->pattern, pat… in regcache()
169 if ((i = strlen(pattern) + 1) >= cp->size) in regcache()
172 if (!(cp->pattern = newof(cp->pattern, char, cp->size, 0))) in regcache()
179 strcpy(cp->pattern, pattern); in regcache()
181 cp->pattern[i] = 0; in regcache()
[all …]
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dglob.c160 glob(pattern, flags, errfunc, pglob) in glob() argument
161 const char *pattern; in glob()
171 patnext = (u_char *) pattern;
213 globexp1(pattern, pglob, limit) in globexp1() argument
214 const Char *pattern; in globexp1()
218 const Char* ptr = pattern;
222 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS)
223 return glob0(pattern, pglob, limit);
226 if (!globexp2(ptr, pattern, pglob, &rv, limit))
229 return glob0(pattern, pglob, limit);
[all …]
/titanic_44/usr/src/cmd/make/bin/
H A Dfiles.cc66 static Boolean star_match(register char *string, register char *pattern);
67 static Boolean amatch(register wchar_t *string, register wchar_t *pattern);
285 read_dir(Name dir, wchar_t *pattern, Property line, wchar_t *library) in read_dir() argument
310 if (pattern == NULL) { in read_dir()
357 if ((pattern != NULL) && amatch(tmp_wcs_buffer, pattern)) { in read_dir()
363 WCSTOMBS(mbs_buffer, pattern); in read_dir()
397 if ((pattern != NULL) && in read_dir()
398 amatch(tmp_wcs_buffer, pattern)) { in read_dir()
400 WCSTOMBS(mbs_buffer, pattern); in read_dir()
532 if ((pattern != NULL) && in read_dir()
[all …]
/titanic_44/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributePattern.java70 String pattern = ""; field in AttributePattern.PatternPart
74 pattern = str; in PatternPart()
156 if ((offset = cstring.indexOf(p.pattern, offset)) == -1) { in match()
164 offset += p.pattern.length(); in match()
182 p.pattern.length() <= 0) { in match()
203 p.pattern, in match()
206 pattern.length())) { in match()
215 offset += p.pattern.length(); in match()
H A DServiceStoreInMemory.java406 boolean matchDoesNotContain(Object pattern, BVCollector returns) { in matchDoesNotContain() argument
417 if (!compareEqual(rec.value, pattern)) { in matchDoesNotContain()
443 matchEqual(Object pattern, BVCollector returns) { in matchEqual() argument
450 if (pattern instanceof AttributePattern) { in matchEqual()
456 AttributePattern pat = (AttributePattern)pattern; in matchEqual()
464 RegRecord rec = walkVector(pattern, false); in matchEqual()
485 matchNotEqual(Object pattern, BVCollector returns) { in matchNotEqual() argument
495 if (!compareEqual(rec.value, pattern)) { in matchNotEqual()
505 matchLessEqual(Object pattern, in matchLessEqual() argument
517 if (!compareLessEqual(rec.value, pattern)) { in matchLessEqual()
[all …]
/titanic_44/usr/src/cmd/perl/contrib/Sun/Solaris/Utils/t/
H A Dgmatch.t44 { pattern => 'a', results => [ 1, 0, 0, 0, 0, 0 ] },
45 { pattern => '*', results => [ 1, 1, 1, 1, 1, 1 ] },
46 { pattern => '?', results => [ 1, 0, 1, 0, 1, 0 ] },
47 { pattern => '??', results => [ 0, 1, 0, 1, 0, 0 ] },
48 { pattern => '[a-z]*', results => [ 1, 1, 1, 1, 0, 0 ] },
49 { pattern => '[!a-z]*', results => [ 0, 0, 0, 0, 1, 1 ] },
50 { pattern => '[0-9]*', results => [ 0, 0, 0, 0, 1, 1 ] },
51 { pattern => '[!0-9]*', results => [ 1, 1, 1, 1, 0, 0 ] },
56 if (gmatch($strs[$i], $t->{pattern}) == $t->{results}[$i]) {
/titanic_44/usr/src/lib/libc/port/regex/
H A Dglob.c197 _glob_ext(const char *pattern, int flags, int (*errfunc)(const char *, int), in _glob_ext() argument
207 if ((patlen = strnlen(pattern, PATH_MAX)) == PATH_MAX) in _glob_ext()
210 patnext = pattern; in _glob_ext()
287 globexp1(const wcat_t *pattern, glob_t *pglob, struct glob_lim *limitp, in globexp1() argument
290 const wcat_t *ptr = pattern; in globexp1()
293 if (pattern[0].w_wc == LBRACE && pattern[1].w_wc == RBRACE && in globexp1()
294 pattern[2].w_wc == EOS) in globexp1()
295 return (glob0(pattern, pglob, limitp, errfunc)); in globexp1()
298 return (globexp2(ptr, pattern, pglob, limitp, errfunc)); in globexp1()
300 return (glob0(pattern, pglob, limitp, errfunc)); in globexp1()
[all …]
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dkgrep.c79 uintptr_t pattern = kg->kg_pattern; in kgrep_range_basic() local
99 if (*pos != pattern) in kgrep_range_basic()
126 uintbits_t pattern = kg->kg_pattern; \
165 if (((cur ^ pattern) & mask) != 0 && \
166 (uintbits_t)(cur - pattern) >= dist) \
219 uintmax_t pattern = mdb_get_dot(); in kgrep() local
264 if (pattern & ~mask) in kgrep()
283 if (pattern & ~size_mask) in kgrep()
286 pattern, size, size_mask); in kgrep()
289 ((dist & ~size_mask) || size_mask + 1 - dist < pattern)) { in kgrep()
[all …]
/titanic_44/usr/src/cmd/bart/
H A Drules.c67 char *pattern, *ptr, *fname_ptr, saved_char; in exclude_fname() local
89 pattern = mod_ptr->mod_str; in exclude_fname()
117 num_pattern_slash = count_slashes(pattern); in exclude_fname()
141 if ((pattern[0] == '.') && (pattern[1] == '.') && in exclude_fname()
142 (pattern[2] == '/')) { in exclude_fname()
143 pattern = strchr(pattern, '/'); in exclude_fname()
149 if (fnmatch(pattern, ptr, FNM_PATHNAME) == 0) { in exclude_fname()
182 (void) strlcpy(pattern_cp, pattern, in exclude_fname()
559 char *pattern; in add_modifier() local
564 pattern = modifier_str; in add_modifier()
[all …]
/titanic_44/usr/src/cmd/fm/fmd/common/
H A Dmkerror.sh47 pattern='^[ ]*EFMD_\([A-Z0-9_]*\).*,*'
50 echo "$input" | sed -n "s/$pattern/$replace/p" | tr '[A-Z]' '[a-z]' || exit 1
57 pattern='^[ ]*EFMD_[A-Z0-9_]*.*\* \(.*\) \*.*'
60 echo "$input" | sed -n "s/$pattern/$replace/p" || exit 1
/titanic_44/usr/src/common/smbios/
H A Dmktables.sh137 pattern="^#define[ ]\($p[A-Za-z0-9_]*\)[ ]*[A-Z0-9]*.*$"
141 sed -n "s@$pattern@$replace@p" < $1 || exit 1
156 pattern="^#define[ ]\($p[A-Za-z0-9_]*\)[ ]*.*/\\* \(.*\) \\*/$"
160 sed -n "s@$pattern@$replace@p" < $1 | sed 's/ ([RO]))/)/' | \
/titanic_44/usr/src/cmd/oawk/
H A Dawk.g.y111 pattern BOR pattern { $$ = op2(BOR, $1, $3); }
112 | pattern AND pattern { $$ = op2(AND, $1, $3); }
113 | NOT pattern { $$ = op1(NOT, $2); }
211 pattern { $$ = stat2(PASTAT, $1, genprint()); }
212 | pattern '{' stat_list '}' { $$ = stat2(PASTAT, $1, $3); }
213 | pattern ',' pattern { $$ = pa2stat($1, $3, genprint()); }
214 | pattern ',' pattern '{' stat_list '}'
227 pattern:
/titanic_44/usr/src/lib/libshell/common/tests/
H A Dsubstring.sh134 while read -r pattern string expected
136 then if [[ $string != $pattern ]]
137 then err_exit "$pattern does not match $string"
140 then err_exit "\${$string##$pattern} not null"
142 if [ "${string##$pattern}" != '' ]
143 then err_exit "\"\${$string##$pattern}\" not null"
145 if [[ ${string/$pattern} != "" ]]
146 then err_exit "\${$string/$pattern} not null"
148 else if [[ $string == $pattern ]]
149 then err_exit "$pattern matches $string"
[all …]
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dmacro.c69 char pattern; /* set when file expansion follows */ member
160 mp->pattern = (mode==1||mode==2); in sh_mactrim()
216 mp->pattern = mp->split && !(flag&ARG_NOGLOB) && !sh_isoption(SH_NOGLOB); in sh_macexpand()
224 mp->pattern = ((flag&ARG_EXP)!=0); in sh_macexpand()
233 if(mp->pattern) in sh_macexpand()
272 mp->split = mp->assign = mp->pattern = mp->patfound = mp->lit = mp->arith = mp->let = 0; in sh_machere()
446 if(mp->pattern==2 && *cp=='/') in copyto()
504 if(c==ESCAPE && mp->pattern) in copyto()
508 …else if(sh_isoption(SH_BRACEEXPAND) && mp->pattern==4 && (*cp==',' || *cp==LBRACE || *cp==RBRACE |… in copyto()
529 if(mp->pattern) in copyto()
[all …]
/titanic_44/usr/src/lib/libast/common/comp/
H A Dre_comp.c42 re_comp(const char* pattern) in re_comp() argument
46 if (!pattern || !*pattern) in re_comp()
59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL))) in re_comp()
/titanic_44/usr/src/cmd/grep_xpg4/
H A Dgrep.c73 char *pattern; /* original pattern */ member
595 pp->pattern = wordbuf; in addpattern()
627 plen = strlen(pp->pattern); in fixpatterns()
638 cq = strcpy(cq, pp->pattern) + plen; in fixpatterns()
641 free(pp->pattern); in fixpatterns()
642 pp->pattern = cp; in fixpatterns()
652 n = strlen(pp->pattern) + 1; in fixpatterns()
660 if (mbstowcs(pp->wpattern, pp->pattern, n) == in fixpatterns()
665 cmdname, pp->pattern); in fixpatterns()
675 free(pp->pattern); in fixpatterns()
[all …]
/titanic_44/usr/src/cmd/sgs/test/ld/x64/tls/ie/
H A Dx64-ie-test.sh17 pattern=$2
19 if /usr/xpg4/bin/fgrep -q "${pattern}"; then
30 pattern=${4}
32 dis -F${func} ${file} | grep_test "${name}" "${pattern}"
/titanic_44/usr/src/tools/cscope-fast/
H A Dfind.c191 else if (strequal(pattern, s)) { in findsymbol()
340 } else if (strequal(pattern, s)) { in finddef()
638 for (pp = pattern; *pp != '\0'; ++pp) { in findgreppat()
751 for (s = pattern + strlen(pattern) - 1; isspace(*s); --s) { in findinit()
758 strncmp(pattern, ".*", 2) != 0) { in findinit()
759 (void) sprintf(pattern, ".*%s", strcpy(buf, pattern)); in findinit()
761 if ((regexp = regcmp(pattern, (char *)NULL)) == NULL) { in findinit()
767 if (strpbrk(pattern, "^.[{*+$") != NULL) { in findinit()
771 s = pattern; in findinit()
785 dbtruncated == NO && s - pattern >= 8) { in findinit()
[all …]
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_power.c502 u8_t* pattern ) in find_nwuf() argument
528 (nwuf->pattern[j*8 + k] != pattern[j*8 + k])) in find_nwuf()
550 u8_t* pattern ) in lm_add_nwuf() argument
563 nwuf = find_nwuf(&pdev->nwuf_list, mask_size, byte_mask, pattern); in lm_add_nwuf()
596 nwuf->pattern[j*8 + k] = pattern[j*8 + k]; in lm_add_nwuf()
601 nwuf->pattern[j*8 + k] = 0; in lm_add_nwuf()
618 nwuf->crc32 = calc_crc32( nwuf->pattern, j, 0xffffffff /*seed*/, 1 /*complement*/ ) ; in lm_add_nwuf()
633 printk("%02X", pattern[idx] ) ; in lm_add_nwuf()
646 printk("%02X", nwuf->pattern[idx] ) ; in lm_add_nwuf()
683 u8_t * pattern ) in lm_del_nwuf() argument
[all …]

12345678