Searched defs:match (Results 1 - 25 of 248) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathrepl.c27 * 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 Dpathgetlink.c60 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/lib/libast/common/regex/
H A Dregexec.c36 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 Dregsubexec.c71 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...]
H A Dregsub.c35 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...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_findrealm.c29 * the components of a principal (princ) but match on any realm. When a
40 krb5_boolean match; local
55 match = krb5_principal_compare(context, ent.principal, princ);
60 if (match) {
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributePattern.java133 // 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...]
H A DAttributeString.java92 public boolean match(AttributeString str) { method in class:AttributeString
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dputenv.c49 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/vgrind/
H A Dretest.c26 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/ypcmd/
H A Dudpublickey.c126 if (err < 0 && match(line, name)) {
181 match(line, name) function
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHandleNPIVPort.cc102 * @return FALSE if the argument does not match this port
106 bool HandleNPIVPort::match(uint64_t portWWN) { function in class:HandleNPIVPort
107 Trace log("HandleNPIVPort::match(wwn)");
116 * @return FALSE if the argument does not match this port
120 bool HandleNPIVPort::match(int index) { function in class:HandleNPIVPort
121 Trace log("HandleNPIVPort::match(index)");
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dfnmatch.c58 regmatch_t match; local
67 reflags = regexec(&re, subject, 1, &match, 0);
69 if (!reflags && (reflags = subject[match.rm_eo]))
H A Dregexp.c98 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/lp/lib/filters/
H A Dregex.c41 ** match() - TEST MATCH OF TEMPLATE/PATTERN WITH PARAMETER
46 match ( function
51 match (re, value)
60 * was ^...$, to explicitly match the beginning and end of line.
62 * checking where the match left off takes care of the $.
/illumos-gate/usr/src/tools/scripts/
H A Dcddlchk.py68 def match(self, filename): member in class:ExceptionList
80 return self.match(elt)
H A Dmapfilechk.py68 def match(self, filename): member in class:ExceptionList
80 return self.match(elt)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetopt.c134 int match; /* nonzero if opt is matching part of optstring */ local
146 match = 1;
148 match = (*ip++ == *op++ && match);
149 if (match && *ip == ')' &&
/illumos-gate/usr/src/lib/libgss/
H A Dg_userok.c50 int match = 0; local
79 &match);
83 if (match)
/illumos-gate/usr/src/cmd/bnu/
H A Dsetmode.c285 int match; local
299 match = 0;
302 match++;
309 match++;
316 match++;
323 match++;
328 if (!match) {
/illumos-gate/usr/src/cmd/tbl/
H A Dts.c19 match(char *s1, char *s2) function
/illumos-gate/usr/src/ucbcmd/from/
H A Dfrom.c23 static int match(char *, char *);
89 (sender == NULL || match(&lbuf[4], sender))) {
99 match(char *line, char *str) function
/illumos-gate/usr/src/ucbcmd/stty/
H A Dsttyparse.c42 static int match; variable
74 match = 0;
98 if(match)
118 if(match)
162 match = 0;
166 if(!match)
172 match = 0;
176 if(!match)
269 if(!match)
290 match
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dckkeywd.c41 match(char *strval, char *set[]) function
110 valid = !match(input, keyword);
/illumos-gate/usr/src/lib/libast/common/string/
H A Dstrmatch.c29 * 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...]

Completed in 84 milliseconds

12345678910