/titanic_51/usr/src/lib/fm/topo/libtopo/common/ |
H A D | mktables.sh | 61 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/ [all...] |
H A D | mkerror.sh | 50 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/ [all...] |
/titanic_51/usr/src/lib/libc/port/locale/ |
H A D | fnmatch.c | 41 * Compares a filename or pathname to a pattern. 77 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() 137 /* Optimize for pattern wit in fnmatch1() 220 rangematch(const char * pattern,wchar_t test,int flags,char ** newp,mbstate_t * patmbs,locale_t loc) rangematch() argument [all...] |
/titanic_51/usr/src/cmd/awk/ |
H A D | awk.g.y | 76 %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 ' [all...] |
/titanic_51/usr/src/lib/libipmi/common/ |
H A D | mktables.sh | 61 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/ [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regcache.c | 33 #define ROUND 64 /* pattern buffer size round */ 39 char* pattern; member 75 * return regcomp() compiled re for pattern and reflags 79 regcache(const char* pattern, regflags_t reflags, int* status) in regcache() argument 90 * 0 pattern flushes the cache and reflags>0 extends cache in regcache() 93 if (!pattern) in regcache() 131 * check if the pattern is in the cache 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 in regcache() [all...] |
/titanic_51/usr/src/lib/libast/common/regex/ |
H A D | regcache.c | 39 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_51/usr/src/cmd/make/bin/ |
H A D | files.cc | 66 static Boolean star_match(register char *string, register char *pattern); 67 static Boolean amatch(register wchar_t *string, register wchar_t *pattern); 261 * read_dir(dir, pattern, line, library) 268 * Non-0 if we found files to match the pattern 272 * pattern Pattern for that files should match or NULL 273 * line When we scan using a pattern we enter files 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() 614 star_match(register wchar_t * string,register wchar_t * pattern) star_match() argument 658 amatch(register wchar_t * string,register wchar_t * pattern) amatch() argument [all...] |
/titanic_51/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributePattern.java | 27 // AttributePattern.java: Models a pattern for attribute matching. 41 * The AttributePattern class models an attribute pattern. It handles 44 * object is a pattern consisting of (maximally) a beginning wildcard and 45 * string pattern. A PatternPart may be lacking the 58 * The PatternPart class models a single component of a pattern. 60 * pattern in the middle. Any of the parts may be missing, but it will 70 String pattern = ""; field in AttributePattern.PatternPart 74 pattern = str; in PatternPart() 85 // If there's no wildcards, simply insert the string in as the pattern. in AttributePattern() 119 // Note that there may be a terminal pattern par in AttributePattern() [all...] |
H A D | ServiceStoreInMemory.java | 406 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() 529 matchNotLessEqual(Object pattern, BVCollector returns) matchNotLessEqual() argument 552 matchGreaterEqual(Object pattern, BVCollector returns) matchGreaterEqual() argument 575 matchNotGreaterEqual(Object pattern, BVCollector returns) matchNotGreaterEqual() argument 601 walkVector(Object pattern, boolean update) walkVector() argument 789 compareEqual(Object target, Object pattern) compareEqual() argument 824 compareLessEqual(Object target, Object pattern) compareLessEqual() argument 867 compareGreaterEqual(Object target, Object pattern) compareGreaterEqual() argument 940 evaluate(AttributeString tag, char op, Object pattern, boolean invert, Parser.ParserRecord prReturns) evaluate() argument [all...] |
/titanic_51/usr/src/cmd/perl/contrib/Sun/Solaris/Utils/t/ |
H A D | gmatch.t | 44 { 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_51/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kgrep.c | 79 uintptr_t pattern = kg->kg_pattern; in kgrep_range_basic() local 99 if (*pos != pattern) in kgrep_range_basic() 117 * value in [pattern, pattern + dist) OR 118 * mask matching: (value & mask) == (pattern & mask) 126 uintbits_t pattern = kg->kg_pattern; \ 163 * of cur minus pattern, below. \ 165 if (((cur ^ pattern) & mask) != 0 && \ 166 (uintbits_t)(cur - pattern) >= dist) \ 192 "Search the entire virtual address space for a particular pattern,\ in KGREP_FANCY_TEMPLATE() 219 uintmax_t pattern = mdb_get_dot(); kgrep() local [all...] |
/titanic_51/usr/src/cmd/bart/ |
H A D | rules.c | 51 * catalog the C files (based upon pattern matching) in the subtree 67 char *pattern, *ptr, *fname_ptr, saved_char; in exclude_fname() local 89 pattern = mod_ptr->mod_str; in exclude_fname() 92 * Pattern is a file pattern. in exclude_fname() 95 * a file pattern and the entry is a directory, in exclude_fname() 115 * in the pattern. in exclude_fname() 117 num_pattern_slash = count_slashes(pattern); in exclude_fname() 130 * Assume fname is /A/B/C/D/E and the pattern is D/E. in exclude_fname() 141 if ((pattern[0] == '.') && (pattern[ in exclude_fname() 559 char *pattern; add_modifier() local 613 char full_path[PATH_MAX], pattern[PATH_MAX]; add_subtree_rule() local [all...] |
/titanic_51/usr/src/lib/libc/port/regex/ |
H A D | glob.c | 48 * Set in gl_flags if pattern contained a globbing character. 50 * Same as GLOB_NOCHECK, but it will only append pattern if it did 87 size_t gl_pathc; /* Count of paths matched by pattern */ 210 _glob_ext(const char *pattern, int flags, int (*errfunc)(const char *, int), in _glob_ext() argument 220 if ((patlen = strnlen(pattern, PATH_MAX)) == PATH_MAX) in _glob_ext() 223 patnext = pattern; in _glob_ext() 295 * Expand recursively a glob {} pattern. When there is no more expansion 300 globexp1(const wcat_t *pattern, glob_t *pglob, struct glob_lim *limitp, in globexp1() argument 303 const wcat_t *ptr = pattern; in globexp1() 306 if (pattern[ in globexp1() 323 globexp2(const wcat_t * ptr,const wcat_t * pattern,glob_t * pglob,struct glob_lim * limitp,int (* errfunc)(const char *,int)) globexp2() argument 429 globtilde(const wcat_t * pattern,wcat_t * patbuf,size_t patbuf_len,glob_t * pglob) globtilde() argument 504 const wcat_t *pattern = *patternp + 1; g_charclass() local 557 glob0(const wcat_t * pattern,glob_t * pglob,struct glob_lim * limitp,int (* errfunc)(const char *,int)) glob0() argument 743 glob1(wcat_t * pattern,wcat_t * pattern_last,glob_t * pglob,struct glob_lim * limitp,int (* errfunc)(const char *,int)) glob1() argument 763 glob2(wcat_t * pathbuf,wcat_t * pathbuf_last,wcat_t * pathend,wcat_t * pathend_last,wcat_t * pattern,wcat_t * pattern_last,glob_t * pglob,struct glob_lim * limitp,int (* errfunc)(const char *,int)) glob2() argument 840 glob3(wcat_t * pathbuf,wcat_t * pathbuf_last,wcat_t * pathend,wcat_t * pathend_last,wcat_t * pattern,wcat_t * restpattern,wcat_t * restpattern_last,glob_t * pglob,struct glob_lim * limitp,int (* errfunc)(const char *,int)) glob3() argument 1281 old_glob(const char * pattern,int flags,int (* errfunc)(const char *,int),old_glob_t * pglob) old_glob() argument [all...] |
/titanic_51/usr/src/cmd/fm/fmd/common/ |
H A D | mkerror.sh | 47 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_51/usr/src/common/smbios/ |
H A D | mktables.sh | 137 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_51/usr/src/cmd/oawk/ |
H A D | awk.g.y | 111 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 ',' patter [all...] |
/titanic_51/usr/src/lib/libshell/common/tests/ |
H A D | substring.sh | 134 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_51/usr/src/lib/libshell/common/sh/ |
H A D | macro.c | 69 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_51/usr/src/lib/libast/common/comp/ |
H A D | re_comp.c | 42 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_51/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | re_comp.c | 42 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_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | macro.c | 79 char pattern; /* set when file expansion follows */ member 80 char patfound; /* set if pattern character found */ 170 mp->pattern = (mode==1||mode==2); in sh_mactrim() 226 mp->pattern = mp->split && !(flag&ARG_NOGLOB) && !sh_isoption(SH_NOGLOB); in sh_macexpand() 235 mp->pattern = ((flag&ARG_EXP)!=0); in sh_macexpand() 244 if(mp->pattern) in sh_macexpand() 283 mp->split = mp->assign = mp->pattern = mp->patfound = mp->lit = mp->arith = mp->let = 0; in sh_machere() 412 * expand argument but do not trim pattern characters 459 if(mp->pattern==2 && *cp=='/') in copyto() 518 if(c==ESCAPE && mp->pattern) in copyto() 1099 char idbuff[3], *id = idbuff, *pattern=0, *repstr=0, *arrmax=0; varsub() local 2796 mac_getstring(char * pattern) mac_getstring() argument [all...] |
/titanic_51/usr/src/cmd/grep_xpg4/ |
H A D | grep.c | 28 * grep - pattern matching program - combined grep, egrep, and fgrep. 68 static int bmglen; /* length of BMG pattern */ 69 static char *bmgpat; /* BMG pattern */ 73 char *pattern; /* original pattern */ member 74 wchar_t *wpattern; /* wide, lowercased pattern */ 76 regex_t re; /* compiled pattern */ 200 case 'e': /* POSIX: pattern list */ in main() 213 case 'f': /* POSIX: pattern file */ in main() 242 case 'w': /* Solaris: treat pattern a in main() [all...] |
/titanic_51/usr/src/cmd/sgs/test/ld/x64/tls/ie/ |
H A D | x64-ie-test.sh | 17 pattern=$2 19 if /usr/xpg4/bin/fgrep -q "${pattern}"; then 30 pattern=${4} 32 dis -F${func} ${file} | grep_test "${name}" "${pattern}"
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | substring.sh | 134 while read -r pattern string expected 136 then if [[ $string != $pattern ]] 137 then err_exit "$pattern does not match $string" 139 if [[ ${string##$pattern} != "" ]] 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 ]] [all...] |