/illumos-gate/usr/src/cmd/lp/lib/filters/ |
H A D | regex.h | 31 int match ( char * , char * ); 36 int match();
|
/illumos-gate/usr/src/lib/libast/common/regex/ |
H A D | regexec.c | 36 regexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match, regflags_t flags) argument 41 int m = match->rm_so; 44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0) 45 for (e = match + nmatch; match < e; match++) 46 if (match->rm_so >= 0) 48 match->rm_so += m; 49 match [all...] |
H A D | regsub.c | 35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags_t flags, int sre) argument 210 s = (char*)op + match[c].rm_so; 211 e = (char*)op + match[c].rm_eo; 242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) argument 256 sfwrite(dp, op, match->rm_eo); 259 sfwrite(dp, op, match->rm_so); 260 if (r = subold(dp, op, sp, nmatch, match, flags, sre)) 263 op += match->rm_eo; 264 } while ((m > 0 || (flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match [all...] |
H A D | regsubexec.c | 71 sub(const regex_t* p, register regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match) argument 86 if ((c = match[op->off].rm_so) < 0) 89 if ((c = match[op->off].rm_eo) < 0) 148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) argument 165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL)); 168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL)); 169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match))) 172 s += match->rm_eo; 175 if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match [all...] |
/illumos-gate/usr/src/cmd/vgrind/ |
H A D | retest.c | 26 char *match; local 34 match = ireg; 35 while(*match) { 36 switch (*match) { 42 printf ("%c", *match); 46 if (isalnum(*match)) 47 printf("%c", *match); 49 printf ("<%03o>", *match); 52 match++; 58 match [all...] |
/illumos-gate/usr/src/cmd/sgs/tools/ |
H A D | getmessage.awk | 59 if (match($j, /[a-z]/) == 0 && 60 match($j, /[A-Z]/) != 0) 72 if (match($j, /[a-z]/) == 0 && 73 match($j, /[A-Z]/) != 0) 85 if (match($1, /[a-z]/) == 0 && 86 match($1, /[A-Z]/) != 0) 90 if (match($1, /[a-z]/) == 0 && 91 match($1, /[A-Z]/) != 0)
|
H A D | catalog.awk | 68 } else if (match($2, "MSG_ID_") != 0) {
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/i386/pid/ |
H A D | tst.retlist.ksh | 29 # Make sure we can match against 2-byte rets 41 match=`$dtrace -l -n pid$PID:a.out:simple: -n pid$PID:a.out:complex: | wc -l` 45 if [ "$match" -ne 12 ]; then 46 echo wrong number of matched probes: $match
|
/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathrepl.c | 27 * in place replace of first occurrence of /match/ with /replace/ in path 34 pathrepl(register char* path, const char* match, register const char* replace) argument 36 register const char* m = match; 40 if (!match) match = ""; 42 if (streq(match, replace)) 73 m = match;
|
H A D | pathgetlink.c | 60 int match = 0; local 72 if (match) 82 if (!match && t < &tmp[sizeof(tmp) - univ_size + 1]) for (n = 0; n < UNIV_MAX; n++) 89 match = 1;
|
/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | Comments.py | 45 return bugre.match(comment) 91 match = bugre.search(com) 92 if match: 93 if match.group(1) not in bugs: 94 bugs[match.group(1)] = [] 95 bugs[match.group(1)].append(match.group(2)) 103 match = bugnospcre.search(com) 104 if match: 105 if match [all...] |
H A D | Keywords.py | 67 match = anykword.findall(line) 68 if match: 71 (filename, lineno, ', '.join(match)))
|
H A D | Mapfile.py | 64 if not VersionRE.match(line): 86 if SymVerRE.match(line):
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | strmatch.c | 29 * match shell file patterns 63 regmatch_t* match; member in struct:State_s 68 * subgroup match 69 * 0 returned if no match 71 * match group begin offsets are even elements of sub 72 * match group end offsets are odd elements of sub 128 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0))) 132 if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT|REG_ICASE))) 140 *sub++ = matchstate.match[ 168 int match[2]; local [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | regexp.c | 98 regmatch_t match[elementsof(re->re_braslist)+1]; local 100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so) 102 re->re_loc1 = (char*)subject + match[0].rm_so; 103 re->re_loc2 = (char*)subject + match[0].rm_eo; 106 re->re_braslist[n-1] = (char*)subject + match[n].rm_so; 107 re->re_braelist[n-1] = (char*)subject + match[n].rm_eo;
|
/illumos-gate/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_nvpair.c | 78 nvpair_t *match = local 81 if (match == NULL) { 84 error = nvpair_value_uint16(match, val); 152 nvpair_t *match = local 155 if (match == NULL) { 158 error = nvpair_value_uint32(match, val); 226 nvpair_t *match = local 229 if (match == NULL) { 232 error = nvpair_value_uint64(match, val); 372 nvpair_t *match local 450 nvpair_t *match = local 534 nvpair_t *match = local 618 nvpair_t *match = local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | putenv.c | 49 static int match(char *, char *); 100 if (match(environ[ct], str) != 0) 109 * if names match, return value of 1, 114 match(char *s1, char *s2) function
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | svc-allocate | 54 <match key="info.capabilities" contains="volume"> 55 <match key="@block.storage_device:storage.removable" bool="true"> 57 </match> 58 <match key="@block.storage_device:storage.hotpluggable" bool="true"> 60 </match> 61 </match>
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributePattern.java | 133 // returning true if they match. 135 public boolean match(AttributeString str) { method in class:AttributePattern 139 boolean match = true; 160 match = false; 171 // have a match. 176 // a pure wildcard, then we *do* have a match. 188 match = false; 199 // The pattern string must match the beginning part of the 207 match = false; 224 return match; [all...] |
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HandleNPIVPort.h | 55 bool match(uint64_t portWWN); 56 bool match(int index);
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.c | 233 nvpair_t *match = zjni_nvlist_walk_nvpair( local 236 if (match == NULL || nvpair_value_uint32(match, &status)) { 456 nvpair_t *match = zjni_nvlist_walk_nvpair( local 458 if (match == NULL || nvpair_value_uint64(match, size)) { 461 match = zjni_nvlist_walk_nvpair( 463 if (match == NULL || nvpair_value_uint64(match, size)) { 471 match 502 nvpair_t *match; local 561 nvpair_t *match = zjni_nvlist_walk_nvpair( local [all...] |
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | getgroup.c | 62 static char *match(); 118 if ((val = match(group)) == NULL) { 219 * scans cp, looking for a match with any character 220 * in match. Returns pointer to place in cp that matched 221 * (or NULL if no match) 224 any(cp, match) 226 char *match; 231 for (mp = match; *mp; mp++) 242 * The equivalent of yp_match. Returns the match, or NULL if there is none. 245 match(grou function [all...] |
/illumos-gate/usr/src/cmd/dd/ |
H A D | dd.c | 116 static int match(char *); 522 if (match("ibs=")) 527 if (match("obs=")) 532 if (match("cbs=")) 537 if (match("bs=")) 542 if (match("if=")) 547 if (match("of=")) 552 if (match("skip=")) 557 if (match("iseek=")) 562 if (match("osee 1682 match(s) function [all...] |
/illumos-gate/usr/src/lib/libshell/common/scripts/ |
H A D | shman.sh | 198 typeset match="${mandir}/sman${mansect}/${manname}.${mansect}" 199 if [[ -r "${match}" ]] ; then 204 debug_print -f "match: %s\n" "${match}" 206 tmp="$(cd "${mandir}" ; LC_MESSAGES=C /usr/lib/sgml/sgml2roff "${match}")" 210 match="${nlink}" 221 match="${mandir}/man${mansect}/${manname}.${mansect}" 222 if [[ -r "${match}" ]] ; then 223 debug_print -f "match: %s\n" "${match}" [all...] |
/illumos-gate/usr/src/tools/onbld/Scm/ |
H A D | Ignore.py | 41 to match ignored paths.''' 55 m = RE_SYNTAX.match(l) 87 if (regex.match(path)):
|