Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/titanic_50/usr/src/cmd/vgrind/
H A Dretest.c26 char *match; in main() local
34 match = ireg; in main()
35 while(*match) { in main()
36 switch (*match) { in main()
42 printf ("%c", *match); in main()
46 if (isalnum(*match)) in main()
47 printf("%c", *match); in main()
49 printf ("<%03o>", *match); in main()
52 match++; in main()
58 match = str; in main()
[all …]
/titanic_50/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) in regexec() argument
41 int m = match->rm_so; in regexec()
44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0) in regexec()
45 for (e = match + nmatch; match < e; match++) in regexec()
46 if (match->rm_so >= 0) in regexec()
48 match->rm_so += m; in regexec()
49 match->rm_eo += m; in regexec()
53 return regnexec(p, s, s ? strlen(s) : 0, nmatch, match, flags); in regexec()
H A Dregsubexec.c71 …er regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match) in sub() argument
86 if ((c = match[op->off].rm_so) < 0) in sub()
89 if ((c = match[op->off].rm_eo) < 0) in sub()
148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) in regsubexec() argument
165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL)); in regsubexec()
168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL)); in regsubexec()
169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match))) in regsubexec()
172 s += match->rm_eo; in regsubexec()
175 …if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? REG_ADV… in regsubexec()
181 if (!match->rm_so && !match->rm_eo && *s && m <= 1) in regsubexec()
[all …]
H A Dregsub.c35 …st char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags… in subold() argument
210 s = (char*)op + match[c].rm_so; in subold()
211 e = (char*)op + match[c].rm_eo; in subold()
242 … p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) in regsub() argument
256 sfwrite(dp, op, match->rm_eo); in regsub()
259 sfwrite(dp, op, match->rm_so); in regsub()
260 if (r = subold(dp, op, sp, nmatch, match, flags, sre)) in regsub()
263 op += match->rm_eo; in regsub()
264 …(flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match->rm_so == match in regsub()
/titanic_50/usr/src/tools/onbld/Checks/
H A DComments.py46 return bugre.match(comment)
92 match = bugre.search(com)
93 if match:
94 if match.group(1) not in bugs:
95 bugs[match.group(1)] = []
96 bugs[match.group(1)].append(match.group(2))
104 match = bugnospcre.search(com)
105 if match:
106 if match.group(1) not in bugs:
107 bugs[match.group(1)] = []
[all …]
/titanic_50/usr/src/cmd/sgs/tools/
H A Dgetmessage.awk59 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)
/titanic_50/usr/src/lib/libast/common/string/
H A Dstrmatch.c63 regmatch_t* match; member
128 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0))) in strgrpmatch()
132 …if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT… in strgrpmatch()
140 *sub++ = matchstate.match[n].rm_so; in strgrpmatch()
141 *sub++ = matchstate.match[n].rm_eo; in strgrpmatch()
168 int match[2]; in strsubmatch() local
170 …return strgrpmatch(s, p, match, 1, (flags ? STR_MAXIMAL : 0)|STR_LEFT) ? (char*)s + match[1] : (ch… in strsubmatch()
/titanic_50/usr/src/lib/libshell/common/scripts/
H A Dshman.sh198 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}"
224 …tbl <"${match}" | eqn | nroff -u0 -Tlp -man - | col -x | browse_manpage /dev/stdin "${manname}(${m…
258 match="${mandir}/sman${mansect}/${manname}.${mansect}"
[all …]
/titanic_50/usr/src/cmd/dd/
H A Ddd.c116 static int match(char *);
522 if (match("ibs=")) in main()
527 if (match("obs=")) in main()
532 if (match("cbs=")) in main()
537 if (match("bs=")) in main()
542 if (match("if=")) in main()
547 if (match("of=")) in main()
552 if (match("skip=")) in main()
557 if (match("iseek=")) in main()
562 if (match("oseek=")) in main()
[all …]
/titanic_50/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c230 nvpair_t *match = zjni_nvlist_walk_nvpair( in get_disk_online() local
233 if (match == NULL || nvpair_value_uint32(match, &status)) { in get_disk_online()
452 nvpair_t *match = zjni_nvlist_walk_nvpair( in get_disk_size() local
454 if (match == NULL || nvpair_value_uint64(match, size)) { in get_disk_size()
457 match = zjni_nvlist_walk_nvpair( in get_disk_size()
459 if (match == NULL || nvpair_value_uint64(match, size)) { in get_disk_size()
467 match = zjni_nvlist_walk_nvpair( in get_disk_size()
469 if (match == NULL || in get_disk_size()
470 nvpair_value_uint32(match, blocksize)) { in get_disk_size()
498 nvpair_t *match; in get_slice_use() local
[all …]
/titanic_50/usr/src/tools/ctf/cvt/
H A Doutput.c160 matching_iidesc(iidesc_t *iidesc, iidesc_match_t *match) in matching_iidesc() argument
162 if (streq(iidesc->ii_name, match->iim_name) == 0) in matching_iidesc()
168 if (match->iim_bind == STB_GLOBAL) { in matching_iidesc()
169 match->iim_ret = iidesc; in matching_iidesc()
171 } else if (match->iim_fuzzy && match->iim_ret == NULL) { in matching_iidesc()
172 match->iim_ret = iidesc; in matching_iidesc()
179 if (match->iim_bind == STB_LOCAL && in matching_iidesc()
180 match->iim_file != NULL && in matching_iidesc()
181 streq(iidesc->ii_owner, match->iim_file)) { in matching_iidesc()
182 match->iim_ret = iidesc; in matching_iidesc()
[all …]
H A Dfixup_tdescs.c160 struct match { struct
166 matching_iidesc(iidesc_t *iidesc, struct match *match) in matching_iidesc() argument
168 if (!streq(iidesc->ii_name, match->m_name)) in matching_iidesc()
174 match->m_ret = iidesc->ii_dtype; in matching_iidesc()
181 struct match match = { NULL, name }; in lookup_tdesc() local
182 iter_iidescs_by_name(td, name, (int (*)())matching_iidesc, &match); in lookup_tdesc()
183 return (match.m_ret); in lookup_tdesc()
/titanic_50/usr/src/lib/libshell/common/tests/
H A Dglob.sh210 test_case '<match>' "'\\'" '[\\]'
211 test_case '<match>' "'\\'" "'\\'"
212 test_case '<match>' "'['" '[[]'
213 test_case '<match>' '[' '[[]'
214 test_case '<match>' "'['" '['
215 test_case '<match>' '[' '['
216 test_case '<match>' "'[abc'" "'['*"
218 test_case '<match>' '[abc' "'['*"
220 test_case '<match>' 'abd' "a[b/c]d"
221 test_case '<match>' 'a/d' "a[b/c]d"
[all …]
/titanic_50/usr/src/lib/libc/port/gen/
H A Dgetopt_long.c316 int match = 0; in parse_long_options() local
319 match = -1; in parse_long_options()
346 match = i; in parse_long_options()
356 if (match == -1) /* partial match */ in parse_long_options()
357 match = i; in parse_long_options()
371 if (match != -1) { /* option found */ in parse_long_options()
372 if ((long_options[match].has_arg == no_argument) && in parse_long_options()
384 if (long_options[match].flag == NULL) in parse_long_options()
385 optopt = long_options[match].val; in parse_long_options()
390 if (long_options[match].has_arg == required_argument || in parse_long_options()
[all …]
/titanic_50/usr/src/lib/libast/common/comp/
H A Dregexp.c98 regmatch_t match[elementsof(re->re_braslist)+1]; in _re_exec() local
100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so) in _re_exec()
102 re->re_loc1 = (char*)subject + match[0].rm_so; in _re_exec()
103 re->re_loc2 = (char*)subject + match[0].rm_eo; in _re_exec()
106 re->re_braslist[n-1] = (char*)subject + match[n].rm_so; in _re_exec()
107 re->re_braelist[n-1] = (char*)subject + match[n].rm_eo; in _re_exec()
/titanic_50/usr/src/cmd/sed/
H A Dprocess.c81 regmatch_t *match; variable
389 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute()
391 re_off = match[0].rm_so; in substitute()
399 if (match[0].rm_so != match[0].rm_eo) { in substitute()
400 s += match[0].rm_eo; in substitute()
401 slen -= match[0].rm_eo; in substitute()
404 if (match[0].rm_so < slen) in substitute()
405 cspace(&SS, s + match[0].rm_so, 1, in substitute()
407 s += match[0].rm_so + 1; in substitute()
408 slen -= match[0].rm_so + 1; in substitute()
[all …]
/titanic_50/usr/src/lib/libast/common/path/
H A Dpathrepl.c34 pathrepl(register char* path, const char* match, register const char* replace) in pathrepl() argument
36 register const char* m = match; in pathrepl()
40 if (!match) match = ""; in pathrepl()
42 if (streq(match, replace)) in pathrepl()
73 m = match; in pathrepl()
/titanic_50/usr/src/lib/libpcp/common/
H A Dpcp_utils.c77 get_vldc_svc_name(char *dev_path, char *service, char **match) in get_vldc_svc_name() argument
101 if (match) in get_vldc_svc_name()
102 *match = strdup(s); in get_vldc_svc_name()
109 } else if (match) { in get_vldc_svc_name()
110 *match = strdup(s); in get_vldc_svc_name()
131 get_glvc_svc_name(char *dev_path, char *service, char **match) in get_glvc_svc_name() argument
163 if ((ret == true) && (match != NULL)) { in get_glvc_svc_name()
164 *match = calloc(len + 1, 1); in get_glvc_svc_name()
165 if (*match) in get_glvc_svc_name()
166 (void) strncpy(*match, devname, len); in get_glvc_svc_name()
/titanic_50/usr/src/cmd/allocate/
H A Dsvc-allocate54 <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>
/titanic_50/usr/src/lib/libtecla/common/
H A Dcplmatch.c299 CplMatch *match; /* The container of the new match */ in cpl_add_completion() local
348 match = cpl->result.matches + cpl->result.nmatch++; in cpl_add_completion()
349 match->completion = string; in cpl_add_completion()
350 match->suffix = string + word_end - word_start; in cpl_add_completion()
351 match->type_suffix = type_suffix; in cpl_add_completion()
1002 CplMatch *match = matches + src; in cpl_zap_duplicates() local
1003 if(strcmp(completion, match->completion) != 0 || in cpl_zap_duplicates()
1004 strcmp(type_suffix, match->type_suffix) != 0) { in cpl_zap_duplicates()
1006 matches[dst] = *match; in cpl_zap_duplicates()
1008 completion = match->completion; in cpl_zap_duplicates()
[all …]
/titanic_50/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_util.c220 if (e->element.match.fmt != NULL) in free_mapping_element()
221 free_mapping_format(e->element.match.fmt); in free_mapping_element()
222 e->element.match.fmt = NULL; in free_mapping_element()
223 for (i = 0; i < e->element.match.numItems; i++) in free_mapping_element()
224 free_mapping_item(&e->element.match.item[i]); in free_mapping_element()
225 e->element.match.numItems = 0; in free_mapping_element()
226 if (e->element.match.item != NULL) in free_mapping_element()
227 free(e->element.match.item); in free_mapping_element()
228 e->element.match.item = NULL; in free_mapping_element()
544 if (fmt->match.string != NULL) in free_mapping_format()
[all …]
/titanic_50/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributePattern.java135 public boolean match(AttributeString str) { in match() method in AttributePattern
139 boolean match = true; in match()
160 match = false; in match()
188 match = false; in match()
207 match = false; in match()
224 return match; in match()
H A DServiceStoreInMemory.java329 boolean match = false; in setReturn()
335 match = true; in setReturn()
339 return match; in setReturn()
380 boolean match = false; in getAll()
385 match = match | rec.setReturn(returns); in getAll()
388 return match; in getAll()
412 boolean match = false; in matchDoesNotContain()
434 match = match | rec.setReturn(returns); in matchDoesNotContain()
438 return match; in matchDoesNotContain()
445 boolean match = false; in matchEqual()
[all …]
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_010_pos.ksh104 (for match in ${clones[@]};do
105 [[ $match != $unexpected_clone ]] && \
111 (for match in ${clones[@]};do
112 [[ $match == $expected_clone ]] && \
113 [[ $match != $unexpected_clone ]] \
119 (for match in ${clones[@]};do
120 [[ $match == $expected_clone ]] && \
128 (for match in ${clones[@]};do
129 [[ $match == $expected_clone ]] && exit 0; \
/titanic_50/usr/src/uts/common/zmod/
H A Ddeflate.c102 local void check_match OF((deflate_state *s, IPos start, IPos match,
1039 register Bytef *match; /* matched string */ local
1082 match = s->window + cur_match;
1096 if (*(ushf*)(match+best_len-1) != scan_end ||
1097 *(ushf*)match != scan_start) continue;
1108 Assert(scan[2] == match[2], "scan[2]?");
1109 scan++, match++;
1111 } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1112 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
1113 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
[all …]

12345678910>>...17